I'm trying to figure out how I can automate a repeating key press within a specific application on automator. Essentially, I want it to run in the background while I'm free to do anything else on my computer.

I'm new to this, so I don't know if it (or anything for that matter) can do what I'm describing

  • It would be helpful to know what the specific application is, what you are trying to accomplish and your Mac OS version too. – Steve Chambers Dec 21 '16 at 21:08

It cannot be done, afaik.

Only the frontmost app will accept keypresses.

I don't have an absolute reference to confirm this, but there are discussion at Apple Communities, Stack Overflow & MacScripter that would appear to agree with my belief.


This can easily be done e.g. with python keyboard (https://github.com/boppreh/keyboard).

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .