3 ms·
And before that we already had AppleScript.
by steve1977 8mo ago
And before that we already had AppleScript.
- frizlab 8mo agoAnd interestingly due to some very clever integrations[0], sending Apple Events (the underlying tech for the actual IPC communication done with AppleScript) is very easy to do in Swift. Easier than in AppleScript actually! It’s a shame most apps do not support Apple Events anymore, though. An example of use: https://github.com/Frizlab/apple-music-to-slack/blob/90964bbef3e61d7874fdcdf47fcd8761ba817b4c/Sources/CurrentTrackInfo.swift#L34 https://github.com/Frizlab/apple-music-to-slack/blob/90964bb... [0] https://github.com/tingraldi/SwiftScripting https://github.com/tingraldi/SwiftScripting