Created
February 8, 2011 12:25
-
-
Save teefax/816361 to your computer and use it in GitHub Desktop.
open a url from os x terminal in google chrome
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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