The future of OS X automation looks quite powerful with UIAutomation introduced to iOS, and now to OS X. JXA can even use
For the time being, though, there is not much documentation available, and we’re pretty much off to explore everything by ourselves. There are a couple of good starting points:
- JXA Cookbook
- Alex Guyot’s "Introduction to Automation on Yosemite". You can tell from the first few paragraphs that Alex is not a huge scripter, and that he’s very new to OS X scripting. His intro starts at the very basics.
I would recommend that you start with Alex’s piece, long but worth it for the basics, then read Michael’s post, then head over to the Cookbook.