OSAKit provides Open Scripting Architecture support for compiling, executing, and managing AppleScript and other OSA scripting languages on macOS. You represent a scripting language with OSALanguage and an evaluation context with OSALanguageInstance, then compile and run scripts through OSAScript, tracking progress with OSAScriptState and controlling storage behavior with OSAStorageOptions. For building a script editing interface, OSAScriptView and OSAScriptController let you display and drive scripts within your app, while OSALanguageFeatures describes the capabilities of a given language.
Scripting Languages 3
Represent an OSA scripting language and create the contexts in which its scripts run.
- ClOSALanguageAn object that represents an OSA scripting language, such as AppleScript, for compiling and executing scripts.
- ClOSALanguageInstanceAn object that represents an evaluation context in which scripts of a given language are compiled and run.
- StOSALanguageFeaturesA type that describes the capabilities and features supported by a given OSA scripting language.
Scripts 3
Compile, execute, and manage AppleScript and other OSA scripts.
- ClOSAScriptAn object that represents a compiled OSA script you can execute, store, and manage.
- EnOSAScriptStateConstants that indicate the current execution state of a script.
- StOSAStorageOptionsOptions that control how a script is stored, including its format and access behavior.
Script Editing Interface 2
Display and drive scripts within a script editing interface in your app.
- ClOSAScriptViewA view that displays and edits the contents of an OSA script within your app.
- ClOSAScriptControllerAn object that coordinates the display and execution of a script within a script editing interface.