AppleScript
AppleScript has been in use for decades, and with such usage comes a large back catalog of existing code. Through an AppleEvent-based AppleScript FFI, BushelScript scripts can use this code, too.
If you find yourself calling AppleScript because of a deficiency in BushelScript's AppleEvent functionality, please file a bug report describing how BushelScript could be improved. Thanks!
#
Importing scriptsAppleScript scripts can be imported as AppleScript
resources.
#
TerminologyWhen an imported script defines terminology in an sdef
file, its resource term contains and exports it. This is usually the case for AppleScript libraries.
#
Calling handlersHandlers are functions written in AppleScript which are callable through in-process AppleEvents. AppleScript handlers can thus be called from BushelScript through remote calls with the AppleEvent descriptor transport format.
#
With command termsA handler for which a command term is defined can be invoked like any other command. This is typically the case with AppleScript libraries.
#
Via user-defined identifiersHandlers named using AppleScript user-defined identifiers (green text in Script Editor) are not automatically imported as terms into BushelScript, but are still accessible through raw form terms with the asid
semantic URI scheme.