As you may be aware, KM macros can call/use scripts like AppleScript and JXA (and others).
In another topic, we had a sub-topic (read off-topic) discussion about how to learn AppleScript, and then JXA.
Since it was off-topic in the other topic, but still, IMO, a very important topic that might be useful to many others, I thought I'd start this topic to focus on Learning & Using AppleScript & JavaScript for Automation (JXA)
TLDR: Quick Start to Learning AppleScript
If you are new to AppleScript and are interested in learning more, then I'd suggest you take a look at:
- AppleScript: Beginner's Tutorial
- Script Debugger 7 -- a full IDE for developing AppleScript.
SD7 now comes with a 20-day free trial, and then will gracefully downgrade to the FREE SD7 Lite (which is still much better than Script Editor).
You can get lots of AppleScript help here in this forum, and in the Script Debugger Forum.
Quick Start to learning JXA
Worthwhile Reading Below
There is much discussion below that you will benefit from.
First, let me point you to the post in the other topic where we began the "Learning..." discussion:
What follows is some great discussion by Chris (ccstone) and ComplexPoint.
All well worth reading.
ComplexPoint suggested to me that it may be better to learn the new JavaScript for Automation (JXA) that became available with Yosemite, rather than continue to butt my head against the AppleScript wall.
I think I agree with him.
For those of you who might be interested in JXA, you may want to take a look at this article I just read, and found very helpful and interesting:
Getting Started with JavaScript for Automation on Yosemite
I think this article can definitely save you a lot of time in getting started with JXA, as well as help you determine if you want to go that route.
Please post here if you have any suggestions, or questions, about learning JXA or AppleScript.