Continuing the discussion from MACRO: Make Macro Alias:
I thought we should start a new topic on this, although there are multiple topics on this already, I think it would be nice if someone who is just starting out could document their experiences, and perhaps help others learn. What do you think? You game?
JXA (JavaScript for Automation) is the JavaScript version of what AppleScript can do. There’s no real difference between JXA and standard JavaScript, except for the special libraries that are available, and the environment under which it is run.
I’ll tell you right up front - getting up to speed is a daunting task, because the documentation, when there actually is some, is extremely sparse. That’s why I’m hoping you’re willing to document your experience, here in this topic.
I will answer as many of your questions as I can, as will others on this forum. I’m committed to getting this documented, if you are. So that means, please bug me with every question you can think of, when you run into walls.
Anyway, here’s the awesome (sarcasm) documentation Apple has:
OS X 10.10 Release Notes
OS X 10.11 Release Notes
Mac Automation Scripting Guide
And here’s some good resources:
JavaScript for Automation Cookbook
JXA Resources
Some of My Stuff
Lastly, I use Atom as my preferred editor. I truly wish I had documented what it took to get it set up for JXA, but unfortunately I didn’t. So if you wanted to tackle this also, it’s another thing we could document from scratch.
Dan