Skip to content

Instantly share code, notes, and snippets.

@jmah
Created May 17, 2012 21:52
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 jmah/2721789 to your computer and use it in GitHub Desktop.
Save jmah/2721789 to your computer and use it in GitHub Desktop.
-- Menu Path: "Item"
tell front document of application "Delicious Library 2"
repeat with theItem in (get selected media)
if class of theItem is book and isbn of theItem is not missing value then
set theISBN to isbn of theItem
tell application "Safari"
activate
open location ("http://openlibrary.org/search?q=" & theISBN)
end tell
end if
end repeat
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment