Skip to content

Instantly share code, notes, and snippets.

@flagranterror
Created February 24, 2012 21:48
Show Gist options
  • Save flagranterror/1903980 to your computer and use it in GitHub Desktop.
Save flagranterror/1903980 to your computer and use it in GitHub Desktop.
Open Current Safari Window in Chrome
property theURL : ""
tell application "Safari"
set theURL to URL of current tab of window 1
end tell
tell application "Google Chrome"
try
make new tab at end of tabs of window 1
on error
if (count windows) is 0 then make new window
end try
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