3
如何在chrome中使用AppleScript在後臺打開新選項卡。 打開一個標籤似乎很容易,但我無法找到可以調用的背景中打開標籤,這意味着活動標籤保持不變。如何使用AppleScript在Chrome中的後臺打開新選項卡
如何在chrome中使用AppleScript在後臺打開新選項卡。 打開一個標籤似乎很容易,但我無法找到可以調用的背景中打開標籤,這意味着活動標籤保持不變。如何使用AppleScript在Chrome中的後臺打開新選項卡
可以保存在變量中active tab index
和設置回您創建標籤後:
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