ExMacOSControl.Adapter behaviour (ExMacOSControl v0.1.2)
View SourceBehaviour defining the adapter interface for macOS automation.
This behaviour defines the callbacks that must be implemented by adapter modules to provide macOS automation functionality. Adapters are responsible for executing AppleScript code, JavaScript for Automation (JXA) code, and running Shortcuts on macOS.
The default implementation is ExMacOSControl.OSAScriptAdapter, which uses the
osascript command-line tool. Alternative implementations can be provided for
testing or to support different execution strategies.