Skip to content

Instantly share code, notes, and snippets.

@maxclark
Created July 18, 2011 22:42
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maxclark/1090881 to your computer and use it in GitHub Desktop.
Save maxclark/1090881 to your computer and use it in GitHub Desktop.
Open Safari URL in Google Chrome
tell application "Safari" to set currentURL to URL of current tab of window 1
tell application "Google Chrome"
activate
if (exists window 1) and (URL of active tab of window 1 is "chrome://newtab/") then
tell window 1 to set URL of active tab to currentURL
else
open location currentURL
end if
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment