Created
March 21, 2014 04:14
-
-
Save lgw4/9679396 to your computer and use it in GitHub Desktop.
Open Page 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" | |
set vURL to URL of current tab of window 1 | |
end tell | |
tell application "Google Chrome.app" | |
if windows ≠ {} then | |
make new «class CrTb» at the end of window 1 with properties {«class URL »:vURL} | |
else | |
make new window | |
set «class URL » of («class acTa» of window 1) to vURL | |
end if | |
activate | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment