Last active
November 11, 2016 13:39
-
-
Save quinn/ed33c1447c622ca124c7a1629c2ab3d8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/usr/bin/env bash | |
# orig: osascript -e 'tell application "Google Chrome" to open location "\1"' | |
osascript <<EOF | |
tell application "Google Chrome" | |
set activeIndex to get active tab index of window 1 | |
tell window 1 | |
set newTab to make new tab with properties {URL:"$1"} | |
end tell | |
set active tab index of window 1 to activeIndex | |
end tell | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment