Created
August 21, 2013 16:10
-
-
Save timvisher/6296525 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--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