Reference articles on history, science, culture and more
Encyclopedia

JavaScript OSA

Macintosh scripting language

JavaScript Open Scripting Architecture (OSA), (originally JavaScript for OSA, then JavaScript OSA, abbreviated further as JSOSA), is a discontinued 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, but with no interoperability between the two languages' system-level scripting.

01Description

The language is identical to Mozilla's core language, with extensions added via a Core object and a MacOS object. The latter has methods for obtaining objects that are bound to application software. This is done via the Apple event 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 interest and was dropped from Script Debugger 5 in 2012.

02Alternatives

OS X Yosemite introduced JavaScript for Automation (JXA): system-wide support for scripting with JavaScript, built upon JavaScriptCore and the Open Scripting Architecture. It features an Objective-C bridge which enables entire Cocoa applications to be programmed in JavaScript.

Watch videos about JavaScript OSAExplainers and documentaries on YouTube (opens in a new tab)

Sources and credits

This article is adapted from the Wikipedia article JavaScript OSA, written by its contributors and licensed under CC BY-SA 4.0. Fathomly has changed the layout, removed citation markers, navigation and maintenance notices, and adjusted punctuation. This adapted version is shared under the same license. For references, see the original article.

Fathomly is not affiliated with or endorsed by the Wikimedia Foundation. Spotted a problem? Tell us.