This article mainly introduces how JavaScript will replace AppleScript? AppleScript is a JavaScript-like scripting language on the OSX platform. If you need it, you can refer to Apple's Release of the JavaScript for Automation Release Notes (preview version) on the official website, which has aroused widespread attention in the community, the general consensus discussed is that this is an experimental attempt to replace/supplement AppleScript.
The predecessor of AppleScript is Hypertalk, The scripting language used by Hypercard. Apple discovered that Hypertalk is similar to the English syntax and can be used to manipulate other software, so it developed AppleScript and became part of System 7. AppleScript also transits from Apple's classic operating system to Mac OS X and Cocoa architecture. Apple also released AppleScript Studio with Mac OS X 10.2, which can be used to create Cocoa software with image interfaces. Note: taken from Wiki
JavaScript has attracted the attention of many large companies by virtue of its simple syntax, good performance, ultra-Lightweight Framework, and extremely small Coupling Module systems.
Coupled with JavaScript's inherent openness and no copyright patent disputes, Apple has a very wide range of developers (open-source) groups, and has introduced it into the OS X platform to replace private AppleScript, some open platforms may also be considered to attract a wide range of third-party developers.