Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Open Safari tabs in Google Chrome
use AppleScript version "2.4" -- Yosemite (10.10) or later
use scripting additions
set url_list to {}
tell application "Safari"
set w to window 1
repeat with t in (tabs of w)
set TabURL to (URL of t)
copy TabURL to the end of url_list
end repeat
end try
end tell
tell application "Google Chrome"
set w to make new window
repeat with u in url_list
tell w
set newTab to make new tab with properties {URL:u}
end tell
end repeat
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.