Last active
December 6, 2020 08:42
-
-
Save tjluoma/4750810 to your computer and use it in GitHub Desktop.
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" | |
if windows ≠ {} then | |
make new tab at the end of window 1 with properties {URL:vURL} | |
else | |
make new window | |
set URL of (active tab of window 1) to vURL | |
end if | |
activate | |
end tell | |
-- 2013-02-10 by Jolin Warren of oakandapple.org | |
-- For more information, see http://www.tuaw.com/2011/03/14/use-applescript-to-open-current-safari-url-in-google-chrome/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment