Yojimbo Rating System

Yojimbo 1.4 icon
If you use a Macintosh, and value organizational bliss, then you need to get Yojimbo. It will make you happy. Then, you need to get these AppleScripts that I wrote to rate your stuff in Yojimbo.

I wanted to rate my Yojimbo items just like I do my iTunes tracks. So, I wrote the following AppleScript to do the trick. It works by setting a special tag for the selected items. I personally like the bullet character (option–8), but you can edit the scripts to use any character you choose. If an item already has a rating tag then it is removed and the new tag is added.

Here is the script for giving the selected Yojimbo items a 5–star rating:


doScript()
on doScript()
tell application "Yojimbo"
set theSelection to selection
end tell
if (theSelection is missing value) then return
if ((count of theSelection) > 0) then
my removeYojimboTags(theSelection, {"•", "••", "•••", "••••", "••••"})
my addYojimboTags(theSelection, {"•••••"})
end if
end doScript
on addYojimboTags(theItems, theTags)
tell application "Yojimbo"
repeat with thisItem in theItems
add tags theTags to thisItem
end repeat
end tell
end addYojimboTags
on removeYojimboTags(theItems, theTags)
tell application "Yojimbo"
repeat with thisItem in theItems
remove tags theTags from thisItem
end repeat
end tell
end removeYojimboTags



Mac OS X Script Menu Screen Shot
After downloading the scripts, put them in your ~/Library/Scripts/Applications/Yojimbo/ folder. Then, when using Yojimbo, you should see these scripts appear in your script menu similar to this screen shot. All you have to do is select the items you want to rate, run the appropriate script, and from that point forward you can find items by their star rating. For easy access to your top-rated items make a smart-tag collection that searches by the 5-star tag.

Yojimbo rating smart-collection screen shot


Download the AppleScripts here.

Sierra Nevada Trip

I recently took a few days off to go play in the Sierra Nevada Mountains. You can see the first of the photos from the trip in my new gallery.

thumb-1


Update: You can see where these photos were taken thanks to Google Maps: