Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save NocturnDragon/1039050 to your computer and use it in GitHub Desktop.
Save NocturnDragon/1039050 to your computer and use it in GitHub Desktop.
Open current safari tab in Google Chrome
property storedURL : ""
tell application "Safari"
set storedURL to URL of current tab of front window
end tell
tell application "Google Chrome"
try
set URL of active tab of front window to storedURL
on error
make new window
set URL of active tab of front window to storedURL
end try
activate
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment