Created
February 24, 2012 21:48
-
-
Save flagranterror/1903980 to your computer and use it in GitHub Desktop.
Open Current Safari Window in Chrome
This file contains 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
property theURL : "" | |
tell application "Safari" | |
set theURL to URL of current tab of window 1 | |
end tell | |
tell application "Google Chrome" | |
try | |
make new tab at end of tabs of window 1 | |
on error | |
if (count windows) is 0 then make new window | |
end try | |
set URL of active tab of window 1 to theURL | |
activate | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment