Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save timvisher/6296548 to your computer and use it in GitHub Desktop.
Save timvisher/6296548 to your computer and use it in GitHub Desktop.
tell application "Google Chrome"
set the clipboard to URL of active tab of front window as text
end tell
--tell application "Google Chrome"
-- set front_tab_url to URL of active tab of front window as text
--end tell
-- tell current application to set selection to front_tab_url
tell application "Google Chrome"
set the clipboard to URL of active tab of front window as text
end tell
delay 0.2
tell application "System Events"
tell (name of first application process whose frontmost is true)
keystroke "v" using {command down}
end tell
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment