Created
August 28, 2012 10:50
-
-
Save samrayner/3497157 to your computer and use it in GitHub Desktop.
Open Safari tab in Google 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
tell application "Safari" to set currentURL to URL of current tab of window 1 | |
tell application "Google Chrome" | |
activate | |
delay 0.2 | |
if (exists window 1) and (URL of active tab of window 1 is "chrome://newtab/") then | |
tell window 1 to set URL of active tab to currentURL | |
else | |
open location currentURL | |
end if | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment