You can view a list of things you can AppleScript in your /Applications/ folder by going to File > Open Dictionary
This is also the reference documentation so you don’t have to guess how things work.
Because “Quit” is a standard function that’s handled by default. There’s a couple more, I think open, new, activate, hide, show. For everything else there’s mastercard.
The Xojo IDE could be made scriptable now with my new scriptable classes, which provide the entire Cocoa Scripting API in Xojo now. But I doubt Xojo is having any resources for doing that, ever.
Also, this should not be posted in Geneal but in Targets/OSX probably.