Sean Chou Script to Create Tag Collection Based on Tags
Jan 24, 2008; 23:48
Sean Chou
Script to Create Tag Collection Based on Tags
One of the features that I always thought was missing from Yojimbo's tagging implementation was a simple way to browse all of the tags available. While it would probably be most elegant in some native format, I thought I'd pull together this simple script which creates a Tag Collection for each tag that is being used.
tell application "Yojimbo"
set tc_names to (name of tag collections)
repeat with t in tags set t_name to name of t if tc_names does not contain t_name then set tc to (make new tag collection) set name of tc to t_name add tags t_name to tc end if end repeat
end tell
I'm not much of an AppleScript writer (as a programmer, AppleScript kind of freaks me out) so I'm sure there's room for improvement, but it's been useful to me so maybe it'll be useful to others as well.
-- ------------------------------------------------------------------ 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>
Jan 25
Kenneth Kirksey Re: Script to Create Tag Collection Based on Tags
Jan 25, 2008; 08:44
Kenneth Kirksey
Re: Script to Create Tag Collection Based on Tags
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!