TechnologiesDeveloper Tools & Diagnostics

OSAKit

iOSmacOStvOSwatchOSvisionOS

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.

  • Cl
    OSALanguage
    An object that represents an OSA scripting language, such as AppleScript, for compiling and executing scripts.
  • Cl
    OSALanguageInstance
    An object that represents an evaluation context in which scripts of a given language are compiled and run.
  • St
    OSALanguageFeatures
    A 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.

  • Cl
    OSAScript
    An object that represents a compiled OSA script you can execute, store, and manage.
  • En
    OSAScriptState
    Constants that indicate the current execution state of a script.
  • St
    OSAStorageOptions
    Options 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.

  • Cl
    OSAScriptView
    A view that displays and edits the contents of an OSA script within your app.
  • Cl
    OSAScriptController
    An object that coordinates the display and execution of a script within a script editing interface.
← Developer Tools & Diagnostics