Skip to content

Instantly share code, notes, and snippets.

@lgw4
Created March 21, 2014 04:14
Show Gist options
  • Save lgw4/9679396 to your computer and use it in GitHub Desktop.
Save lgw4/9679396 to your computer and use it in GitHub Desktop.
Open Page in Google Chrome
tell application "Safari"
set vURL to URL of current tab of window 1
end tell
tell application "Google Chrome.app"
if windows ≠ {} then
make new «class CrTb» at the end of window 1 with properties {«class URL »:vURL}
else
make new window
set «class URL » of («class acTa» of window 1) to vURL
end if
activate
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment