Mac Developer Library

Developer

Scripting Bridge Framework Reference

Introduction

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.

Classes

Class

Abstract

NSObject

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

SBObject

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

SBApplication

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.

NSMutableArray

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

SBElementArray

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

Protocols

Protocol

Abstract

SBApplicationDelegate

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