Jump To:
Leopard Sample Code
AppleScript, JavaScript, Perl, PHP, Ruby, Python, various shell script dialects, and other popular scripting languages are available in Mac OS X. Developers can make their applications scriptable, enabling automation of repetitive tasks through AppleScript scripts. To make automation even easier, the Automator application offers a simple drag-and-drop interface for users to create sophisticated workflows involving Mac OS X system services and Apple applications. Developers and script writers can also create their own Automator actions, allowing applications, shell scripts, and AppleScript scripts to be called from within Automator workflows.

Learning paths for scripters, system administrators, and application developers.   Essential information about using and supporting scripts and automation.   C and Objective-C API references, organized by framework.
Document Descriptions
On Off
Display

Sorted by
Title
Sort by
Topic
Sort by
Date
AppleScriptRunner (HTML) (DMG) (ZIP)
How to send mail and execute other AppleScripts from a Carbon application.
Carbon 2006-07-31
Apply Firmware Password (HTML) (DMG) (ZIP)
Demonstrates how to create an Automator Action for System Image Utility.
Automator, System Administration 2007-06-12
AttachAScript (HTML) (DMG) (ZIP)
Illustrates how you can extend any Cocoa application by adding some AppleScripts to it.
Cocoa 2006-07-27
AutomatorHandsOn (HTML) (DMG) (ZIP)
Illustrates several methods for building Automator Actions
Automator 2007-06-12
AutoSample (HTML) (DMG) (ZIP)
How to run and display Automator workflows in your application.
Automator, Cocoa 2007-05-23
DeskPictAppDockMenu (HTML) (DMG) (ZIP)
How to add a dynamic Dock menu to your Cocoa application
Cocoa 2003-01-14
Duplicate Finder Items (HTML) (DMG) (ZIP)
Shows how to build an Automator action targeting Finder using AppleScript.
AppleScript, Automator 2005-06-06
EmbededAppleScripts (HTML) (DMG) (ZIP)
Extending the functionality of your application by adding precompiled AppleScripts.
Carbon 2003-09-04
HelloStudio (HTML) (DMG) (ZIP)
This is a Hello, world application built using AppleScript Studio.
Cocoa, Tools 2006-07-28
iTunesController (HTML) (DMG) (ZIP)
iTunesController allows you to control iTunes without having to bring it to the foreground.
Carbon 2006-02-23
MoreAppleEvents (HTML) (DMG) (ZIP)
Provides routines that assist with the creation and sending of Apple events and object descriptors.
AppleScript, Carbon, Tools 2003-01-14
MoreIsBetter (HTML) (DMG) (ZIP)
Library providing indispensable wrapers and workarounds for many areas of Mac OS programming.
Carbon 2003-10-27
MoreOSL (HTML) (DMG) (ZIP)
C library for implementing AppleScript support within your application.
Carbon 2003-01-14
ODOC (HTML) (DMG) (ZIP)
Illustrates how to send an open document ('odoc') Apple event to another application process.
AppleScript, Carbon, Tools 2003-01-14
Processes (HTML) (DMG) (ZIP)
This process management application uses most of AppleScript Studio's significant features.
Cocoa, Tools 2006-07-28
SampleCMPlugIn (HTML) (DMG) (ZIP)
A contextual menu plugIn for Mac OS X.
Carbon, Tools 2006-10-09
SBSendEmail (HTML) (DMG) (ZIP)
Using the Scripting Bridge to tell Mail.app to send an email message with an optional attachment.
Internet & Web, Scripting Bridges 2008-02-28
SBSetFinderComment (HTML) (DMG) (ZIP)
Set/Get Finder Comments using Scripting Bridge
AppleScript, Scripting Bridges 2007-12-04
SBSystemPrefs (HTML) (DMG) (ZIP)
Shows how to use Scripting Bridge to display a preference pane in System Preferences.
AppleScript, Cocoa, Scripting Bridges 2008-10-13
ScriptingBridgeFinder (HTML) (DMG) (ZIP)
Using the Finder with Scripting Bridge
AppleScript, Cocoa, Scripting Bridges 2007-12-13
ScriptingBridgeiCal (HTML) (DMG) (ZIP)
Adding/updating events in iCal using Scripting Bridge.
AppleScript, Scripting Bridges 2007-12-13
ScriptingDefinitions (HTML) (DMG) (ZIP)
Provides a starting sdef (scripting definition) and a completed one for the Sketch example code.
Carbon, Cocoa 2008-05-30
ScriptView (HTML) (DMG) (ZIP)
Shows how to build a script editor application with a built-in script database using AppleScript Studio.
AppleScript, Cocoa, Tools 2005-06-01
SimpleCarbonAppleScript (HTML) (DMG) (ZIP)
A simple example illustrating how to add readable and writable AppleScript properties to Carbon Application.
Carbon 2007-03-01
SimpleScripting (HTML) (DMG) (ZIP)
Illustrates the minimal steps required to make an application scriptable.
Cocoa 2008-05-30
SimpleScriptingObjects (HTML) (DMG) (ZIP)
How to add scriptable objects to an AppleScriptable application.
Cocoa 2008-06-02
SimpleScriptingProperties (HTML) (DMG) (ZIP)
How to add some properties to the terminology provided by an AppleScriptable application.
Cocoa 2008-06-02
SimpleScriptingVerbs (HTML) (DMG) (ZIP)
How to add verbs to the terminology provided by an AppleScriptable application.
Cocoa 2008-06-02
Sketch-112 (HTML) (DMG) (ZIP)
Sketch is a Scriptable Graphics application. This sample adds certain Scriptable functionality to Sketch, as an example for use in WWDC 2005 Session 112.
Cocoa 2005-06-06
TextEditPlus (HTML) (DMG) (ZIP)
This application is a version of TextEdit enhanced with additional document properties using AppleScript Studio.
Cocoa, Tools 2006-07-28
UpdateXcodeSubprojects (HTML) (DMG) (ZIP)
Updates all subprojects of an Xcode project to Xcode 2.1 format. Illustrates scripting techniques.
Tools 2005-06-06