How to open a new tab in Background using AppleScript in chrome. Open a tab seems so easy, but I just can't find what can be called to open the tab in background, which means the active tab remains the same.
You can save the active tab index
in a variable and set it back after you created your tab:
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:"http://www.google.com/"}
end tell
set active tab index of window 1 to activeIndex
end tell
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With