Hacker News new | ask | show | jobs
by Mister_Snuggles 3696 days ago
So then the question becomes, how many developers take the extra effort to make their Electron application a first-class citizen on each platform?

My guess is that almost none of them bother. I looked at the documentation for Atom, which seems to be the flagship Electron application, and there's no mention of its API being exposed to the system (AppleScript on MacOS and COM on Windows), even though it does have a very rich API.

A quick search seems to confirm that there is no useful AppleScript support:

https://discuss.atom.io/t/applescript-support/1439

https://discuss.atom.io/t/accessing-the-contents-of-a-window...

The second discussion mentions that there is a dictionary, my guess would be that it comes from the underlying Chrome browser. Interestingly enough, looking at the dictionary for Google Chrome, it appears that they have made an effort to expose things that make sense for a browser to expose to AppleScript.