Applescript 击键“⌘+”给出错误
Applescript Keystroke "⌘+" gives an error
我的 applescript 不工作。我想要在 mac 上执行 ⌘+
的击键。
这是我当前的代码。
set abc to "+"
tell application "System Events"
keystroke command & abc
keystroke a
end tell
当我点击播放时,出现错误
"System Events got an error: Can’t make {command, \"n\"} into type text." number -1700 from {command, "n"} to text.
有人知道如何解决这个问题吗?
按下修改键的语法是
set abc to "+"
tell application "System Events"
keystroke abc using command down
end tell
我的 applescript 不工作。我想要在 mac 上执行 ⌘+
的击键。
这是我当前的代码。
set abc to "+"
tell application "System Events"
keystroke command & abc
keystroke a
end tell
当我点击播放时,出现错误
"System Events got an error: Can’t make {command, \"n\"} into type text." number -1700 from {command, "n"} to text.
有人知道如何解决这个问题吗?
按下修改键的语法是
set abc to "+"
tell application "System Events"
keystroke abc using command down
end tell