Created
August 31, 2012 09:38
-
-
Save florianeckerstorfer/3550873 to your computer and use it in GitHub Desktop.
Opens the current URL from Google Chrome in Safari
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
(* | |
Opens the current URL from Google Chrome in Safari | |
Sources: | |
- https://discussions.apple.com/message/15728092#15728092 | |
- https://culturedcode.com/things/wiki/index.php/Chrome_to_Things_(AppleScript) | |
*) | |
property theURL : "" | |
tell application "Google Chrome" | |
set theURL to (get URL of active tab of window 1) | |
end tell | |
tell application "Safari" | |
activate | |
try | |
tell window 1 to set current tab to make new tab --with properties {URL:theURL} | |
set URL of document 1 to theURL | |
on error | |
open location theURL | |
end try | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment