2011-05-15 66 views

回答

11

可以保存在變量中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 
相關問題