Automate Key Presses. How??

applemaz

Registered
I have 2 copies of the same application open and I want to toggle between them and do a key press/combination in each. I know that CMD TAB will switch back and forth between them (as long as I don't hold it down to bring up the application switcher).

I want to bind a single key to call (I believe) an Automator Service?? that does the following:
Press 1 key.
Press CMD TAB.
Press 1 key.
Press CMD TAB.

What should my automator script look like? I think I can go into the Keyboard shortcut and bind a single key to run the script. I just don't know how to make the script do the key presses. Can anyone tell me?

Mike
 
Back
Top