'''JavaScript OSA''', (originally ''JavaScript for OSA'', abbreviated as ''JSOSA''), is a Freeware Inter-process_communication Scripting_language for the Macintosh_computer.
JavaScript OSA uses the "core language" of the Mozilla implementation of the JavaScript Programming_language, (see SpiderMonkey). The language is used as an alternative to the AppleScript language. Its use is unrelated to Web_browser-based scripting. It can be seen as having a similar function to Microsoft's JScript_.NET language on Windows machines, although there is no interoperability between the two languages' system-level scripting.
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 of 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.
==Criticism==
As of March, 2006, JSOSA is missing some features that AppleScript supports. These would include:
* Support for object-filtering, referred to in AppleScript as support for the "whose clause".
* Support for sending AppleEvents without waiting for replies, accomplished in AppleScript with an "ignoring application responses" statement. In fact, JSOSA does support this with the sendAENoReply method of application objects, but this requires the user to construct a "raw" AppleEvent.
==External links==
* Late Night Software
* Current release version of JavaScript OSA
* An "alpha" release of JSOSA, version 2.0
Category:Scripting_languages
Category:Mac_OS-only_software
{{compu-lang-stub}}
Conheça Walt Disney World
