Hi there, I just created an Applescript to be used in conjunction with GeekTool (http://projects.tynsoe.org/en/geektool/) that can display your Yojimbo tags on your desktop (for quick and easy reference)
I hope it is of some use to people. I don't think I have seen this elsewhere. Instructions (also included in code below) 1) Download and install GeekTool if you already haven’t. It is uber-cool :) 2) Copy the script below into Script Editor (generally located in Applications/AppleScript/) 3) Save it as "GetYojimboTags.scpt" in /users/YourUserName/library/scripts/ (where "YourUserName" is the name of your user account on your mac.) 4) In the GeekTool preference pane (found in System Preferences) create a new entry. Select "Shell" from the drop down menu. Type the following command in the "Command" box "osascript /users/YourUserName/library/scripts/GetYojimboTags.scpt" (but without the quotation marks. Again substitute "YourUserName" with the name of your user account on your mac). 5) You're done! [code] (* Get Yojimbo Tags Script Created: 30/12/2007 For use with GeekTool - http://projects.tynsoe.org/en/geektool/ Instructions 1) Copy this script into Script Editor and Save it as "GetYojimboTags.scpt". Save it in /users/YourUserName/library/scripts/ 2) In GeekTool create a new entry with the command (without the quotation marks) "osascript /users/YourUserName/library/scripts/GetYojimboTags.scpt" 3) You're done! *) (* Get all Yojimbo's Tags from Yojimbo *) tell application "Yojimbo" set allTags to name of every tag end tell (* Now we are going to format them *) (* from MacScripter Text Delimiters Tutorial - http://macscripter.net/articles/402_0_10_0_C/ *) set AppleScript's text item delimiters to space set YojimboTags to allTags as string set AppleScript's text item delimiters to "" set newText to switchText of YojimboTags from space to return to switchText of currentText from SearchString to ReplaceString --the handler set storedDelimiters to AppleScript's text item delimiters set AppleScript's text item delimiters to SearchString set currentText to currentText's text items -- note we have changed currentText's value set AppleScript's text item delimiters to ReplaceString set currentText to currentText as Unicode text set AppleScript's text item delimiters to storedDelimiters -- restore the value of AppleScript's AppleScript's text item delimiters -- to whatever they were on entering the subroutine. Remember that a call to this -- might have been made from within a section of script that had the TIDs set to -- something else. Hand the result back with the TIDs as they were. currentText -- return the now modified text (and restored TIDs) set output to "Yojimbo Tags: " & return & currentText end switchText -- the end of the handler. [/code] _________________________________________________________________ New music from the Rogue Traders - listen now! http://ninemsn.com.au/share/redir/adTrack.asp?mode=click&clientID=832&referral=hotmailtaglineOct07&URL=http://music.ninemsn.com.au/roguetraders -- ------------------------------------------------------------------ This message is sent to you because you are subscribed to the mailing list <[email protected]>. To unsubscribe, send mail to: <[EMAIL PROTECTED]> 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: <[EMAIL PROTECTED]>
