Created
April 24, 2016 12:51
-
-
Save HR/46d98d036443597aeefcea872b4165c7 to your computer and use it in GitHub Desktop.
Open new tab with URL (in the background) in Chrome Applescript
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
on run argv | |
set passedInURL to (item 1 of argv) | |
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:passedInURL} | |
end tell | |
set active tab index of window 1 to activeIndex | |
end tell | |
end run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment