I want to do two things when my Mac boots up:
1) Run an app 2) Click a button on that app
Any suggestions for how I can accomplish this? FWIW, this is app I haven't written so I can't change source or pass in command line params.
Save a script like this as
Save this as ~/Library/LaunchAgents/test.plist:
More information about UI scripting and launchd: