I like to provide a command interface to my Mac-only Xojo app.
Ideally, I’d provide AppleScripting by implementing a full suite with objects and all. However, this is too much work for me right now.
It would be much easier to implement something more like what the Xojo IDE does where the app receives textual commands via a single channel and then sends back results on the same channel.
The Xojo IDE accomplishes that via a Socket connection, but I like to try the same by using a single scripting command, such as “executeCommand”, which takes a String. The results should be able to have different types, mainly text, picture and file reference, and possible an array of those.
Has anyone done something similar? I’m especially interested in getting help with creating the various response descriptors.