Memories of JavaScript OSA

javascript

(Mark Alldritt) #1

Those of you who were with me in the Script Debugger 3.0 days may recall my unsuccessful attempt to create a JavaScript alternative to AppleScript. This was long before Apple introduced JavaScript for Automation (JXA). Unfortunately, JavaScript OSA was ahead of its time.

I like to think that JavaScript OSA showed the way for Apple’s JavaScript for Automation effort, though they chose a very different approach to interfacing with applications.

Sadly the code no longer compiles but the documentation remains. Matt Neuburg created a great document describing JavaScript OSA:

Introducing JavaScript OSA


(Daniel Rodrigue) #2

Yes I do remember! That was when we were young and beautiful…
… we are still beautiful but less young…
I love memories!


(Doeke Zanstra) #3

I’m not sure I know what the difference is between JavasScript OSA and JXA.

When opening Scripteditor.app and choosing JavaScript as language; is this JavaScript OSA or JXA?


(Mark Alldritt) #4

At this stage it is impossible for both JXA and JavaScript OSA to both be active on your machine. Even if JavaScript OSA is present on your machine from an old Script Debugger installation, it will not load.


(Doeke Zanstra) #5

It’s also mentioned as one of the OSA languages in AppleScript: The Definitive Guide.

It’s linking to a page (this link) that’s not available anymore. Maybe an idea to create some content (or to redirect to this forum page?).


(Mark Alldritt) #6

done.

some extra characters to lengthen the post to satisfy Discourse