The language is identical to Mozilla's core language, with extensions added via a "Core" object and a "MacOS" object. The MacOS object has methods for obtaining objects that are bound to applications. This is done via the AppleEvent messaging system, a part of the Macintosh's Open Scripting Architecture.
The language was first released in 2001, and was bundled with Late Night Software's flagship product, Script Debugger. In May 2005, a new "alpha" version of the language was made available for testing. This improved second version of the language was bundled with version 4 of Script Debugger. JavaScript OSA was eventually discontinued due to lack of interest1 and was dropped from Script Debugger 5 in 2012.2
OS X Yosemite introduced JavaScript for Automation (JXA): system-wide support for scripting with JavaScript, built upon JavaScriptCore and the Open Scripting Architecture.3 It features an Objective-C bridge which enables entire Cocoa applications to be programmed in JavaScript.4
"Yosemite JavaScript for Automation Support". Late Night Software. Retrieved March 22, 2015. http://www.latenightsw.com/2014/yosemite-javascript-for-automation-support/ ↩
"What's New in Script Debugger 5.0". Late Night Software. Retrieved March 22, 2015. http://www.latenightsw.com/sd5/whats-new-in-script-debugger-5/ ↩
"JavaScript for Automation". MacStories. Retrieved August 31, 2014. http://www.macstories.net/linked/javascript-for-automation-on-os-x-yosemite/ ↩
"JavaScript for Automation Release Notes". Apple, Inc. Retrieved August 31, 2014. https://developer.apple.com/library/prerelease/mac/releasenotes/InterapplicationCommunication/RN-JavaScriptForAutomation/index.html#//apple_ref/doc/uid/TP40014508 ↩