Skip to content

Instantly share code, notes, and snippets.

@diego898
Created September 4, 2015 17:51
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save diego898/ebf68fcf2d16b0223e5f to your computer and use it in GitHub Desktop.
Save diego898/ebf68fcf2d16b0223e5f 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