【发布时间】:2016-10-29 23:11:21
【问题描述】:
我正在尝试在 Automator 中编写一个 Applescript,它会在按住控制、选项和命令的同时按下左箭头按钮。我到目前为止的代码是:
on run {input, parameters}
tell application "System Events"
tell application "Sublime Text 2" to activate
keystroke "left" using {control down, option down, command down}
end tell
return input
end run
但是,这不起作用。关于如何修复此代码的任何建议? 谢谢!
【问题讨论】:
-
您是否尝试将键盘上的主页和结束按钮映射为使用 command + right 或 left 进行映射?
-
仅供参考:这实际上是在尝试键入单词“left”,同时按下所有三个修饰符。
标签: applescript