Yojimbo Tag List

Yojimbo Tag List Screenshot

Here is a little AppleScript that lists the tags you’ve used in Yojimbo. If you select some tags, it will copy them to the clipboard concatenated with commas.

-- get list of known tags
set _tags to {}
tell application "Yojimbo"
 repeat with _tag in tags
  set end of _tags to name of _tag
 end repeat
end tell

-- show list to user
set _choice to choose from list _tags with title "Yojimbo Tags" with prompt "Select tags:" with multiple selections allowed without empty selection allowed
if _choice is equal to false then return

-- concatenate and copy chosen tags
set _dtid to text item delimiters
set text item delimiters to {","}
set the clipboard to ("" & _choice)
set text item delimiters to _dtid

You can copy and paste the above code into a new Script Editor document, or you can download the script directly:

Unzip the file and put it in ~/Library/Scripts to access it from your system’s script menu. If there is sufficient interest I may try to integrate it with my other Yojimbo script.

Posted on Sunday, February 4th, 2007. Tags: , , .

One Response to “Yojimbo Tag List”

Posted by Jim on Monday, February 5th, 2007 at 1:51 PM.

Thank you to Dennis Rande and Stan Rowin on the Yojimbo-talk mailing list for figuring out how to fix a dialog layout problem. An empty prompt string was the culprit.