Skip to content

Instantly share code, notes, and snippets.

@Zettt
Created September 12, 2013 14:50
Show Gist options
  • Save Zettt/6538752 to your computer and use it in GitHub Desktop.
Save Zettt/6538752 to your computer and use it in GitHub Desktop.
Script opens all tabs from frontmost Safari window in Google Chrome. Handy for "moving" accounts, e.g. moving likes, playlists, etc. from one YouTube channel to another.
tell application "Safari"
set urlList to ""
set tabcount to number of tabs in window 1
repeat with y from 1 to tabcount
set tabURL to URL of tab y of window 1
set urlList to urlList & tabURL & linefeed as string
tell application "Google Chrome" to open location tabURL
end repeat
end tell
return urlList
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment