Re:Making macOS Behave Itself
by usrn on Wednesday May 25, 2022 @04:29PM
(#31510109)
Last I checked the javascript documentation for OSA was pretty incomplete. I needed to script something on a mac the other year and had to use AppleScript because I couldn't figure out how to do something extremely basic (like get a hash out of some app or something, I don't remember.)
[ Parent
| on HN ]
In theory there should be a mapping from AppleScript APIs and objects to JavaScript, but it may not always be obvious.
I wish Apple had better developer documentation in general.
It seems to have taken a downturn recently even as they have accelerated feature velocity with things like SwiftUI.