Every few minutes I need to click a button on Yosemite's menu bar and select an option. I'd like to automate this task by somehow recording this action and scheduling it to execute via cron / command line.
I've tried creating an Automator workflow using the "Watch Me Do" feature, but although it executes fine inside Automator, when I run automator myclicks.workflow
in the Terminal, it gives me this cryptic error message:
The action encountered an error.
How can I get automator action to work?
automator -debug myclicks.workflow