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:
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.