[macos]使用applescript 触发键盘快捷键

https://stackoverflow.com/questions/3690167/how-can-one-invoke-a-keyboard-shortcut-from-within-an-applescript

如果想触发tab的话,就把引号去掉,

比如这样来触发command+tab

tell application "System Events"

    keystroke tab using {command down}

end tell

posted @ 2022-11-05 23:21  hh9515  阅读(232)  评论(0编辑  收藏  举报