Are there any resources for making a Swift app (on OSX) scritable? Specifically, executing app functions vis Applescript?
Resources for scriptable Swift OS X Apps
I’ve not seen this covered specifically but you should be able to do it using the standard Cocoa infrastructure.
One gotcha is that the
.sdef
file holds class names, so you’ll have to either supplied the mangled Swift class name or use
@objc(Foo)
in your Swift source to control the class name.
Share and Enjoy
—
Quinn "The Eskimo!"
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"