0

I need to batch a process that requires me to automate some key presses. All I need to be able to do is hit the enter key, wait 5 seconds, hit the enter key again, wait 5 minutes, and then cmd + w to close the current window.

In the MacOS 9 days I would use OneClick by WestCode software: http://www.macworld.com/article/15791/2000/12/13reviews2oneclick.html

Is there a similar tool for MacOS X, Snow Leopard specifically? In this particular instance I do not need to can the focus of windows or anything else. I just need to automate key presses within a program at various intervals.

2 Answers 2

0

Have you tried to use automator and its record actions feature? Described here

1
  • The "Watch Me Do" action in Automator doesn't record everything, unfortunately. May 25, 2011 at 23:00
0

The closest thing I could find was to use a combination of Automator's "Watch Me Do" actions and AppleScript to simulate key presses. I wrote a tutorial and posted my Automator workflow here:

http://www.johnkramlich.com/blog/2011/05/24/batch-exporting-adobe-flash-flas-to-quicktime-movies/

More info about AppleScript "System Events" for simulating key presses here:

http://en.wikibooks.org/wiki/AppleScript_Programming/System_Events

You must log in to answer this question.

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