Skip to content

Instantly share code, notes, and snippets.

@teefax
Created February 8, 2011 12:25
Show Gist options
  • Save teefax/816361 to your computer and use it in GitHub Desktop.
Save teefax/816361 to your computer and use it in GitHub Desktop.
open a url from os x terminal in google chrome
#!/bin/sh
URL=$1
osascript -e "
tell application \"Google Chrome\"
activate
set newWin to make new window
tell newWin
tell active tab
set URL to \"$URL\"
end tell
end tell
end tell"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment