JavaScript OSA: Difference between revisions
No edit summary |
update: 'JavaScript OSA' is discontinued; correction: Apple's 'JavaScript for Automation' is unrelated to Late Night Software's 'JavaScript OSA' |
||
Line 7: | Line 7: | ||
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 [[application software|applications]]. This is done via the [[AppleEvents|AppleEvent]] messaging system, a part of the Macintosh's [[Open Scripting Architecture]]. |
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 [[application software|applications]]. This is done via the [[AppleEvents|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. |
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 <ref name="Yosemite JavaScript for Automation Support">{{cite web|title=Yosemite JavaScript for Automation Support|url=http://www.latenightsw.com/2014/yosemite-javascript-for-automation-support/|website=Late Night Software|accessdate=March 22, 2015}}</ref> and was dropped from Script Debugger 5 in 2012.<ref name="What’s New in Script Debugger 5.0? ">{{cite web|title=What’s New in Script Debugger 5.0|url=http://www.latenightsw.com/sd5/whats-new-in-script-debugger-5/|website=Late Night Software|accessdate=March 22, 2015}}</ref> |
||
==Alternatives== |
|||
⚫ | [[OS X Yosemite]] introduced [[JavaScript for Automation]] (JXA): system-wide support for scripting with [[JavaScript]], built upon [[JavaScriptCore]] and |
||
⚫ | [[OS X Yosemite]] introduced [[JavaScript for Automation]] (JXA): system-wide support for scripting with [[JavaScript]], built upon [[JavaScriptCore]] and the [[Open Scripting Architecture]].<ref name="JavaScript for Automation">{{cite web|title=JavaScript for Automation|url=http://www.macstories.net/linked/javascript-for-automation-on-os-x-yosemite/|website=MacStories|accessdate=August 31, 2014}}</ref> It features an [[Objective-C]] bridge which enables entire [[Cocoa (API)|Cocoa]] applications to be programmed in JavaScript.<ref name="JavaScript for Automation Release Notes">{{cite web|title=JavaScript for Automation Release Notes|url=https://developer.apple.com/library/prerelease/mac/releasenotes/InterapplicationCommunication/RN-JavaScriptForAutomation/index.html#//apple_ref/doc/uid/TP40014508|publisher=Apple, Inc.|accessdate=August 31, 2014}}</ref> |
||
==References== |
==References== |
||
Line 16: | Line 18: | ||
==External links== |
==External links== |
||
* [http://www.latenightsw.com Late Night Software] |
* [http://www.latenightsw.com Late Night Software] |
||
* [http://www.latenightsw.com/freeware/JavaScriptOSA/index.html Current release version of JavaScript OSA] Note: Broken Link. Software may not be available anymore. |
|||
* [http://www.latenightsw.com/freeware/JavaScriptOSA/jsosa2.html An "alpha" release of JSOSA, version 2.0] |
|||
* {{Cite web|url=http://oreilly.com/pub/a/javascript/2001/05/11/js_for_mac.html|title=JavaScript and Mac OS|publisher=[[O'Reilly]]|date=May 11, 2001|author=Hough, Richard|accessdate=January 10, 2010}} |
* {{Cite web|url=http://oreilly.com/pub/a/javascript/2001/05/11/js_for_mac.html|title=JavaScript and Mac OS|publisher=[[O'Reilly]]|date=May 11, 2001|author=Hough, Richard|accessdate=January 10, 2010}} |
||
{{ECMAScript}} |
{{ECMAScript}} |
Revision as of 21:21, 22 March 2015
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.
Description
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 interest [1] and was dropped from Script Debugger 5 in 2012.[2]
Alternatives
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]
References
- ^ "Yosemite JavaScript for Automation Support". Late Night Software. Retrieved March 22, 2015.
- ^ "What's New in Script Debugger 5.0". Late Night Software. Retrieved March 22, 2015.
- ^ "JavaScript for Automation". MacStories. Retrieved August 31, 2014.
- ^ "JavaScript for Automation Release Notes". Apple, Inc. Retrieved August 31, 2014.
External links
- Late Night Software
- Hough, Richard (May 11, 2001). "JavaScript and Mac OS". O'Reilly. Retrieved January 10, 2010.