I needed to add tags to multiple items while sorting out my stuff. So by hook or by crook, I kludged this little script together, which adds multiple tags to multiple selected items in the Yojimbo browser window.
Caveat Emptor: I'm no Applescript expert, those of you who are, might have a little chuckle at how i've strung this together, but trust me, it's cribbed from multiple reliable sources ;-) And, besides, it seems to do what I want - nearly. I suspect setting 't' may be a red herring, but it's ticking along nicely, so I'm releasing it into the wild. If you know better feel free to tinker...
-- Start Script (* Here's a script to batch add tags to Yojimbo items. Select the items you wish to add a tag or tags to, in the form of single words or phrases ensuring they are comma delimited. (Without spaces, 'cos I don't know how to strip them just now) *)
tell application "Yojimbo" set _targets to (selected items of browser window 1) set ct to count items of _targets set tag_list to "" set AppleScript's text item delimiters to "," set t to "" set s to text returned of ¬ (display dialog "Tag(s) - comma delimited:" default answer t) set the tag_list to every text item of s repeat with i from 1 to ct try add tags tag_list to item i of _targets on error beep end try end repeat end tell -- End Script
Oh, and if it trashes your reliably .mac syncing Yojimbo set-up, don't say you haven't been warned.
Have fun.
Cheers
John
-- ------------------------------------------------------------------ This message is sent to you because you are subscribed to the mailing list <yojimbo-talk@barebones.com>. To unsubscribe, send mail to: <yojimbo-talk-off@barebones.com> List archives: <http://www.listsearch.com/yojimbotalk.lasso> Have a feature request, or not sure if the software's working correctly? Please send mail to: <support@barebones.com>
Search
Lasso Programming
This site manages and broadcasts several email lists pertaining to Lasso Programming and technologies related and used by Lasso developers. Sign up today!