Crate objc2_scripting_bridge

Crate objc2_scripting_bridge 

Source
Expand description

§Bindings to the ScriptingBridge framework

See Apple’s docs and the general docs on framework crates for more information.

Structs§

SBApplicationSBApplication and SBObject
The SBApplication class provides a mechanism enabling an Objective-C program to send Apple events to a scriptable application and receive Apple events in response. It thereby makes it possible for that program to control the application and exchange data with it. Scripting Bridge works by bridging data types between Apple event descriptors and Cocoa objects.
SBElementArraySBElementArray
SBElementArray is subclass of NSMutableArray that manages collections of related SBObject objects. For example, when you ask the Finder for a list of disks, or ask iTunes for a list of playlists, you get the result back as an SBElementArray containing Scripting Bridge objects representing those items.
SBObjectSBObject
The SBObject class declares methods that can be invoked on any object in a scriptable application. It defines methods for getting elements and properties of an object, as well as setting a given object to a new value.

Traits§

SBApplicationDelegateSBApplication
This informal protocol defines a delegation method for handling Apple event errors that are sent from a target application to an <doc ://com.apple.documentation/documentation/scriptingbridge/sbapplication> object.