アプリにフォーカスして「cmd + 1」をクリックする簡単なapplescriptを書いています。
これは私が書いたものです:
tell application "System Events"
tell application process "appname"
--Lobby focus
activate
keystroke "1" using command down
end tell
end tell
しかし、動作する代わりに、ビープ音が 1 回鳴り、アプリケーションはフォーカスさえしません。
どうすればこれを解決できますか?