Local Links External Links Contact Search this site |
Making your Xojo OS X application scriptable (AppleScript)This page gives a brief intro about making your application scriptable, i.e. via AppleScript. Summary of the steps necessary:
DownloadAppleEvent Demo (zip file, last updated Mar 13, 2016)
The demo shows how to handle a few custom commands where values (text or number) are passed as arguments and a value is then returned after the command has been handled by the Xojo code inside App.HandleAppleEvent. See the Notes section in the App class for more information and instructions. Cocoa AppleScripting framework for Xojo (added in 2018)For the Xojo-made application iClip I have written a very smart layer that makes Xojo classes semi-automatically scriptable. The documentation is lacking, but it comes with a demo projec that shows most of its abilities. If you are interested in using the framework and need assistance, contact me. Further information (a bit outdated)
export AEDebug=1
export AEDebugSends=1
export AEDebugReceives=1
Then launch the built app from the same terminal cmd line, using the app's path plus /Contents/MacOS/ executableName (the open command won't work for this).
|