Skip to content

Instantly share code, notes, and snippets.

@fgarcia
Created October 13, 2012 08:03
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 fgarcia/3883755 to your computer and use it in GitHub Desktop.
Save fgarcia/3883755 to your computer and use it in GitHub Desktop.
take screenshot of current Chrome URL
tell application "Google Chrome"
set activeURL to URL of active tab of first window
end tell
activate application "Skitch"
tell application "System Events"
tell application process "Skitch"
click menu item "Snap from Link..." of menu "Capture" of menu bar 1
tell (1st process whose frontmost is true) to keystroke activeURL
keystroke return
end tell
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment