How to create a simple keyboard macro with Automator?
If you don't want to use any third party apps you are really complicating your life. Although I think it's possible.

1) Open Automator and create a new Service. In your workflow you want to Run Applescript. In there you tell it to press the keys you want.


Once you save it as a Service you can then set up a keyboard shortcut for it in System Preferences. It should automatically show up under the General group. Make sure it's enabled and give it a keyboard shortcut.


I have gotten this to work by testing the Show history function Cmd-Y. Hopefully the above isn't too cryptic.

If you want to set global shortcuts and run scripts you might want to look at BetterTouchTool: http://blog.boastr.net/