Skip to content

Instantly share code, notes, and snippets.

@rosskarchner
Created May 11, 2011 22:47
Show Gist options
  • Save rosskarchner/967562 to your computer and use it in GitHub Desktop.
Save rosskarchner/967562 to your computer and use it in GitHub Desktop.
Saves the visible page in Chrome as a full-page screenshot, in Evernote, via the freeware Paparazzi! app
on run {input, parameters}
tell application "Google Chrome"
set myURL to URL of active tab of window 1
set myTitle to title of active tab of window 1
end tell
tell application "Paparazzi!"
capture myURL min size {1024, 728}
repeat until busy is false
end repeat
set myFile to save as PNG in "/tmp/"
quit
end tell
tell application "Evernote"
set myNote to create note title myTitle from file myFile notebook "Screenshots"
tell myNote to append html "<a href='" & myURL & "'>" & myTitle & "</a>"
tell myNote to set source URL to myURL
end tell
return input
end run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment