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&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.