如何制作一个将标签切换到右侧的AppleScript

时间:2017-06-13 21:27:09

标签: applescript

我尝试过使用代码;

tell application "Google Chrome"
    activate
end tell

tell application "System Events"
    keystroke 124 using {command down, option down}
end tell

此脚本有什么问题,因为命令选项箭头通常会切换标签

1 个答案:

答案 0 :(得分:0)

tell application "Google Chrome" 
    activate 
end tell

tell application "System Events" 
    key code 124 using {command down, option down} 
end tell