Created
November 28, 2008 21:37
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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