我尝试过使用代码;
tell application "Google Chrome"
activate
end tell
tell application "System Events"
keystroke 124 using {command down, option down}
end tell
此脚本有什么问题,因为命令选项箭头通常会切换标签
答案 0 :(得分:0)
tell application "Google Chrome"
activate
end tell
tell application "System Events"
key code 124 using {command down, option down}
end tell