Mac Developer Library


Scripting Bridge Framework Reference


Classes   Protocols  

Scripting Bridge is a technology that lets you control scriptable Apple and third-party applications using standard Objective-C syntax. Introduced in OS X version 10.5 (Leopard), the Scripting Bridge framework dynamically implements an Objective-C bridge to OSA-compliant applications—that is, applications having a scripting interface (usually defined in a sdef file). As part of this implementation, it generates Objective-C class implementations of the classes it finds in the scripting interface, including objects and methods representing properties, elements, commands, and so on. The objects are derived from classes defined in the Scripting Bridge framework.



NSObject is the root class of most Objective-C class hierarchies.


The SBObject class declares methods that can be invoked on any object in a scriptable application.


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.


The NSMutableArray class declares the programmatic interface to objects that manage a modifiable array of objects.


SBElementArray is subclass of NSMutableArray that manages collections of related SBObject objects.



This informal protocol defines a delegation method for handling Apple event errors that are sent from an target application to an SBApplication object.