Anyways, that’s how you do AppleScript in Swift (it’s even type-safe!) [1]
Usage example. [2]
[1] https://github.com/Frizlab/apple-music-to-slack/blob/90964bb...
[2] https://github.com/Frizlab/apple-music-to-slack/blob/90964bb...
No, no one has ever known anything, and every day people are born knowing even less. This is a strangely aggressive way to share this interesting information, especially for MacOS programming, a platform requiring such byzantine arcane knowledge I'm amazed people write anything for it at all. At least for Win32 people wrote books you could buy and not blog posts.
Anyway, thank you for the introduction to the very cool SwiftScripting project [0], extracting programmable interfaces directly from app bundles. It's just like COM, right? nice to see MacOS catching up (/ragebait)
[0] https://majestysoftware.wordpress.com/2015/03/31/swift-scrip...
This basically neuters it for any wide product use. Fine for personal projects, but this is never going to fly for anything more than power user tools.
rsync•3h ago
Unfortunately this runs only on a MacOS system which is hard to provision as long-running datacenter infra ...
[1] https://news.ycombinator.com/item?id=46571661