Created — forked from gfontenot/Open Page In Chrome.scpt

Embed URL


SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Open Safari URL in Chrome

View Open in Chrome.scpt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
tell application "Safari"
set the_url to URL of front document
end tell
tell application "Google Chrome"
set win to first window
on error
set win to make new window
end try
tell win
if URL of active tab = "chrome://newtab/" then
set URL of active tab to the_url
make new tab with properties {URL:the_url}
end if
end tell
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.