Skip to content

Instantly share code, notes, and snippets.

@granth
Created July 14, 2009 15:32
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save granth/147017 to your computer and use it in GitHub Desktop.
Save granth/147017 to your computer and use it in GitHub Desktop.
-- save as "Add Pinboard Bookmark.scpt" in ~/Library/Scripts/Applications/Safari
-- assign it ⌘D in FastScripts to use instead of Safari's bookmarks
tell application "Safari"
set pinboardBookmarklet to "
document.location = 'http://pinboard.in/add?next=same' +
'&url=' + encodeURIComponent(location.href) +
'&title=' + encodeURIComponent(document.title);
"
do JavaScript pinboardBookmarklet in document 1
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment