Shortcuts App Keystroke Action

How do I create a Shortcuts action to execute a keystroke?

In particular, I need to simulate pressing an arrow key.

Thanks.

Mac Studio

Posted on Jun 10, 2022 11:08 AM

Reply
Question marked as Top-ranking reply

Posted on Jun 12, 2022 3:45 PM

There isn't an action to do that in Shortcuts.

You can send a keystroke via AppleScript.

https://eastmanreference.com/how-to-automate-your-keyboard-in-mac-os-x-with-applescript

https://eastmanreference.com/complete-list-of-applescript-key-codes


1 reply

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Shortcuts App Keystroke Action

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.