Created
September 4, 2015 17:51
-
-
Save diego898/ebf68fcf2d16b0223e5f to your computer and use it in GitHub Desktop.
AppleScript file to move tabs from safari to chrome
This file contains hidden or 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" | |
if not (exists document 1) then return | |
set theURL to URL of current tab of window 1 | |
close current tab of window 1 | |
end tell | |
tell application "Google Chrome" | |
if not (exists window 1) then | |
reopen | |
else | |
tell window 1 to make new tab | |
end if | |
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