Last active
December 17, 2015 17:39
-
-
Save wuputah/5647202 to your computer and use it in GitHub Desktop.
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
tell application "Google Chrome" | |
set aWin to make new window with properties {mode:"incognito"} | |
tell aWin | |
make new tab with properties {URL:"http://www.wuputah.com"} | |
close tab 1 | |
end tell | |
activate | |
end tell |
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 | |
osascript - <<EOF | |
tell application "Google Chrome" | |
set aWin to make new window with properties {mode:"incognito"} | |
tell aWin | |
make new tab with properties {URL:"$1"} | |
close tab 1 | |
end tell | |
activate | |
end tell | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment