AppleScript alternatives I've recently discovered AppleScript. AppleScript affords a simple, natural way to programmatically simulate keyboard-and-mouse interaction with Mac applications. AppleScript is great, however it suffers from the following problems:


The latest stable release is from 2014, and last year the AppleScript product manager was laid off and his position was eliminated.
The official documentation has not been updated since January 2016, and all of the tutorial and reference books that are dedicated to AppleScript date no later than 2010 (with the exception of this one, which seems to be a copy-and-paste of some stackexchange Q&amp;A with the AppleScript tag). 
Script Editor, the built-in AppleScript development environment, has no debugging capabilities. There seems to be just one commercial IDE for AppleScript*. It looks amazing and has all the debugging features that one would expect from a modern IDE, but it costs $100, which would be too expensive for my pocket even if Apple did not seem to be phasing out this programming language (see bullet point #1).


Are there any alternatives to AppleScript? Is there an actively developed and supported programming language with a good, cheap IDE, and good, up-to-date documentation, that makes it possible to simulate keyboard-and-mouse interaction with Mac applications in a quick and easy way? Something, maybe, like the Apple counterpart for Microsoft's VBA (Visual Basic for Applications) for their Office suite on Windows?



* It appears there's another third-party AppleScript IDE: Smile. Unlike Script Editor, Smile is free of charge.
Since Yosemite, OS X/macOS also supports JavaScript as an inter-process scripting language--officially known as JavaScript for Automation, also referred to as JXA. The documentation (and some would say, the implementation) is somewhat lacking compared to AppleScript, but if you're already more familiar with JavaScript than AppleScript, then it might be an option.

Like AppleScript, JXA also offers an ObjC bridge allowing you to use Cocoa APIs in your JavaScript.

One advantage is that there are many more editors and IDEs out there designed for JavaScript coding than there are for AppleScript, though Script Editor and Automator probably still have the edge for debugging JXA-specific stuff.

Official resources:


Mac Scripting Essentials (covers AppleScript and JavaScript)
JXA Release Notes


Some unofficial resources:


https://github.com/dtinth/JXA-Cookbook/wiki 
https://www.macstories.net/tutorials/getting-started-with-javascript-for-automation-on-yosemite/
https://hackmag.com/coding/getting-to-grips-with-javascript-automation-for-os-x/
https://tylergaw.com/articles/building-osx-apps-with-js
https://stackoverflow.com/questions/tagged/javascript-automation