The only thing I could find was the old topic on AppleEvents for carbon versions of PureBasic.
Nobody seems to have any script examples for using Cocoa to respond to AppleEvents so I can make my programs Scriptable.
Any help would be appreciated.
Mac OSX specific forum
Mac OSX Sierra 10.13.6 & Windows 10, PB 5.71