2011-05-15 43 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 
相关问题