News for hackers. Stuff that matters.
Re:How Apple Programmer Sal Soghoian Got Apps Talking to Eac... by neurobashing on Sunday June 03, 2018 @12:25PM (#17220271)
The "JavaScript for Automation" stuff is extremely incomplete, and to make matters worse, whatever dingus in XCode generates the documentation only knows about AppleScript, so sometimes you get object methods called properties and in any event the return type is wrong, etc.

Basically made it work well enough for a few things that ship on a default OS X install and stopped.

Re:How Apple Programmer Sal Soghoian Got Apps Talking to Eac... by crooked-v on Sunday June 03, 2018 @02:12PM (#17220822)
It also has the problem that there's no straightforward way to use external packages at all, which is a killer for efficient Javascript use.
Re:How Apple Programmer Sal Soghoian Got Apps Talking to Eac... by hhas01 on Monday June 04, 2018 @01:59AM (#17225028)
This. This. And Absolutely This.

npm integration was an absolute must-have to ensure popular adoption; even I could see this straightaway. Alas, as last Apple bastion of Not Invented Here, the Mac Automation team insisted on rolling everything themselves.

All problems I told Sal about before JXA ever shipped. Told him about lots and lots of problems, which he pretty much ignored. Even wrote and sent him a quick-n-dirty JavaScript OSA implementation (https://sourceforge.net/projects/appscript/files/), by which time the man didn’t even have the common manners to say “thanks but no thanks”. A charming chap who talks great game, but a thin-skinned martinet.

There was no technical reason JXA could not have been 99.9% as good as AppleScript at application automation, and a million times better at everything else. 100% PEBKAC.