34
Core Technologies Overview
OS X Mavericks
Automation
AppleScript
AppleScript is Apple’s native language for application automation, as used by the
AppleScript Editor. Its English-like syntax generates Apple events, which use a script-
ing dictionary (provided by most Mac applications) to programmatically create, edit, or
transform their documents. AppleScript and other Open Scripting Architecture (OSA)
scripts can be activated by contextual menus, user interface elements, Calendar events,
and even folder actions, such as drag and drop.
Automator
Automator provides a graphical environment for assembling actions (typically built
from AppleScript or shell scripts) into sophisticated workows, which can be saved
as either standalone applications or as custom services, print plug-ins, folder actions,
Calendar alarms, and Image Capture plug-ins.
Apple events
The Apple Event Bridge framework provides an elegant way for Cocoa applications
(including bridged scripting languages) to generate Apple events based on an applica-
tion’s dictionary, even generating appropriate header les if necessary.
Services
The Services menu lets you focus on only those actions relevant to your current
selection, whether in the menu bar, the Finder action menu, or a contextual menu.
Individual services can also be disabled and assigned shortcuts from the Keyboard
pane in System Preferences.
iCloud support
iCloud “Documents in the Cloud” support has been added to both the AppleScript
Editor and Automator applications. As with other Apple applications, users can store
their automation documents—including AppleScript scripts, applets, droplets, and
Automator workow les and applets—to the document storage area provided with
their Apple iCloud accounts. This service ensures that your favorite automation tools
can be easily shared across all of your Apple laptop and desktop computers.
Code signing
Support for code signing has been added as an export feature to both the AppleScript
Editor and Automator applications, enabling Apple developers to easily generate signed
copies of their applets and droplets. Such signed automation applets will not trigger
OS security warnings on computers that are using the default Gatekeeper setting of
allowing only applications downloaded from the Mac App Store and identied devel-
opers to execute. This feature is a boon for developers of automation-supporting Mac
applications and for solution providers, allowing them to distribute smooth-launching
automation solutions to their customers and clients.
AppleScript Libraries
AppleScript Libraries provide a new plug-in architecture for extending the power and
abilities of AppleScript. AppleScript Libraries are user-created script les and bundles,
written using AppleScript or AppleScript/Objective-C, that can be referenced in scripts
to provide specialized handlers and functionality. In addition to providing access to
standard Cocoa classes and methods through the use of AppleScript/Objective-C,
AppleScript Libraries can publish their own scripting terminology, making it easier for
scripters to remember and incorporate custom commands in their scripts. AppleScript
Libraries have been made universally available through placement in new Script
Libraries directories created in the standard OS Library domains, enabling AppleScript
Libraries to be easily distributed between multiple computers running OS X Mavericks.