Created
September 12, 2013 14:50
-
-
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.
This file contains 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" | |
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