Skip to content

Instantly share code, notes, and snippets.

@yashodhank
Forked from diego898/movetochrome.scpt
Created October 15, 2015 01:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yashodhank/b6446c741f39da54f890 to your computer and use it in GitHub Desktop.
Save yashodhank/b6446c741f39da54f890 to your computer and use it in GitHub Desktop.
AppleScript file to move tabs from safari to chrome
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