AppleScript is a macOS-speci!c scripting language generally used for benign purposes, and often for system administration, such as task automation or to interact with other applications on the system. By design, its grammar is rather close to spoken English.
You can execute these scripts via the /usr/bin/osascript command.
AppleScripts can be distributed in their raw, human-readable form or compiled.
The former case uses the .applescript extension, while the latter normally uses a .scpt extension To decompile AppleScript compiled (when not in run only mode)
osadecompile helloWorld.scpt
Unfortunately, the Script Editor cannot decompile AppleScripts exported via the run-only option, (or via the osacompile command with the -x option), complicating certain analyses.