Skip to content

Instantly share code, notes, and snippets.

@mkhl
Created November 28, 2008 21:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mkhl/30103 to your computer and use it in GitHub Desktop.
Save mkhl/30103 to your computer and use it in GitHub Desktop.
Helper script for Yojimbo; can archive and bookmark items, and adds Growl support
on archive(theURL, theTitle)
tell application "Yojimbo"
set theItem to make new web archive item¬
with contents theURL
end tell
end archive
on bookmark(theURL, theTitle)
tell application "Yojimbo"
set theItem to make new bookmark item¬
with properties {name:theTitle, location:theURL}
end tell
end bookmark
on notify(theAction, theTitle)
tell application "GrowlHelperApp"
notify with name theAction¬
title (theAction & " Page")¬
description theTitle¬
application name "Yojimbo Helper"
end tell
end notify
on register()
tell application "GrowlHelperApp"
set allNotifications to {"Archived", "Bookmarked"}
register as application "Yojimbo Helper"¬
all notifications allNotifications¬
default notifications allNotifications¬
icon of application "Yojimbo"
end tell
end register
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment