How to make Automator auto press a key on a different application?

MacBook Pro macOS Sequoia 15. How do you make Automator auto press a key? I have tried using “Watch Me Do” pressed the desired key set it on pause and loop but when i run the file it doesn’t register the key press in a game or application. When I used the same “Watch Me Do” to auto press my mouse it works but not with a key it doesn’t matter if it’s a letter or number it won’t register does anyone have a clue how to make it register?

MacBook Pro 14″, macOS 15.7

Posted on Nov 19, 2025 5:34 PM

Reply
4 replies

Dec 10, 2025 2:16 PM in response to John_Martt

Try a macro creator like Keyboard Maestro. It can do what you want and much, much more. I have over 100 macros created with it from launching apps, changing settings in Safari to posting text with a simple text imput. When I forget the keystroke it's easy to do a search in Keyboard Maestro to find the right one.


There are other macro apps in the App Store but KM is the most powerful.


Dec 10, 2025 4:43 AM in response to John_Martt

When I entered your topic line into a Google search, its AI it presented me with a proposed way to do this. I didn't test it but have found that even if some of the scripts it proposes do not work outright, they can after a bit of tweaking. The solution used both Automator and Applescript.


I am wondering why you don't just press the key yourself? To activate the automator step you have to use a shortcut.

How to make Automator auto press a key on a different application?

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