如何制作将选项卡向右切换的applescript

如何制作将选项卡向右切换的applescript,applescript,Applescript,我试过使用代码 tell application "Google Chrome" activate end tell tell application "System Events" keystroke 124 using {command down, option down} end tell 这个脚本有什么问题吗?因为命令选项箭头通常会切换选项卡 tell application "Google Chrome" activate end tell tell

我试过使用代码

tell application "Google Chrome"
    activate
end tell

tell application "System Events"
    keystroke 124 using {command down, option down}
end tell
这个脚本有什么问题吗?因为命令选项箭头通常会切换选项卡

tell application "Google Chrome" 
    activate 
end tell

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