The scripting approach leveraged here is a Swift layer on top of the Scripting Bridge. Xcode ships with a pair of utilities, sdef and sdp, to aid Objective-C programmers in using the Scripting Bridge.