Yes, the script was done with AppleScript, using optionally supported Objective-C classes and methods in Apple's development frameworks. I used some Objective-C data structures that are not available in AppleScript alone, and the Zsh shell in a handler (function) to format the printout, as AppleScript can't do that, and interferes with string formatting in Objective-C.
Yes, you can learn AppleScript, and several of Apple's and some third-partry applications provide AppleScript dictionary support to control their functionality. You can access those dictionary descriptions from the Script Editor's File menu > Open Dictionary… However, Apple's strategic direction is with the Swift Programming language which requires the installation of either Xcode (40GB) and the Swift Playground, or just the command line tools for Xcode (4GB) to gain access to the Swift interpreter, and its compilation suite. Swift is intended to build standalone applications, not to control their functionality as does AppleScript.
See the following. Most of the AppleScript links below point to much older content, as AppleScript has been around for decades, and Apple is not extending it with new features. You may see images of the Script Editor that don't look like it does now, but the basics (entering code, clicking the compile button to see if you have syntax errors, or running it and having it explode do to runtime errors) haven't changed much.
AppleScript: Beginner's tutorial
Introduction to AppleScript Language Guide
AppleScript Language Guide (PDF)
Learn AppleScript, 3rd Edition (Amazon)
AppleScript: The Missing Manual (Amazon)