Jump To:
Leopard Sample Code: Cocoa
Cocoa applications can take advantage of automated support supplied by the Foundation and Application Kit frameworks to make their applications scriptable. A scriptable application is one that is capable of performing operations or returning data in response to AppleScript scripts. Cocoa applications can also control other scriptable applications.

View all Scripting & Automation Sample Code.
Document Descriptions
On Off
Display

Sorted by
Title
Sort by
Date
AutoSample (HTML) (DMG) (ZIP)
How to run and display Automator workflows in your application.
2007-05-23
SBSendEmail (HTML) (DMG) (ZIP)
Using the Scripting Bridge to tell Mail.app to send an email message with an optional attachment.
2008-02-28
SBSetFinderComment (HTML) (DMG) (ZIP)
Set/Get Finder Comments using Scripting Bridge
2007-12-04
SBSystemPrefs (HTML) (DMG) (ZIP)
Shows how to use Scripting Bridge to display a preference pane in System Preferences.
2008-10-13
ScriptingBridgeiCal (HTML) (DMG) (ZIP)
Adding/updating events in iCal using Scripting Bridge.
2007-12-13