Skip to content

Instantly share code, notes, and snippets.

@jmah
Created May 17, 2012 21:52
Show Gist options
  • 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