Framework

Automator

Develop actions that can be loaded and run by the Automator app. View, edit, and run Automator workflows in your app.

Overview

The Automator framework supports the development of actions for the Automator application, as well as the ability to run a workflow in developer applications. An action is a bundle that, when loaded and run, performs a specific task, such as copying a file or cropping an image. Using Automator, users can construct and execute workflows consisting of a sequence of actions. Developers can also load and execute workflows in their applications. As a workflow executes, the output of one action is typically passed as the input to the next action. Automator loads action bundles from standard locations in the file system: /System/Library/Automator, /Library/Automator, and ~/Library/Automator.

Symbols

Classes

AMAction

AMAction is an abstract class that defines the interface and general characteristics of Automator actions. Automator is an Apple application that allows users to construct and execute workflows consisting of a sequence of discrete modules called actions. An action performs a specific task, such as copying a file or cropping an image, and passes its output to Automator to give to the next action in the workflow. Actions are currently implemented as loadable bundles owned by objects of the AMBundleAction class, a subclass of AMAction.

AMAppleScriptAction

Important: AMAppleScriptAction is considered deprecated. Use the Cocoa-AppleScript template (an instance of AMBundleAction) in Xcode to create AppleScript-based Automator actions.

AMBundleAction

Instances of the AMBundleAction class manage Automator actions that are loadable bundles. Automator loads action bundles from standard locations in the file system: /System/Library/Automator, /Library/Automator, and ~/Library/Automator.

AMShellScriptAction

Instances of the AMShellScriptAction class own Automator actions whose runtime behavior is driven by a shell script or by a Perl or Python script.

AMWorkflow

The AMWorkflow class lets you use an Automator workflow in your application. You can display a workflow with an instance of AMWorkflowView and control its operation with an instance of AMWorkflowController.

AMWorkflowController

The AMWorkflowController class lets you manage an Automator workflow in your application. You use the AMWorkflow class to instantiate a workflow and an instance of AMWorkflowView to display it.

AMWorkflowView

You use the AMWorkflowView class to provide viewing and editing of Automator workflows in your application. You use an instance of AMWorkflow to instantiate a workflow and an instance of AMWorkflowController to control its execution. Together, these three classes provide a Model-View-Controller suite for working with workflows.

Extended Types

NSObject

NSObject is the root class of most Objective-C class hierarchies. Through NSObject, objects inherit a basic interface to the runtime system and the ability to behave as Objective-C objects.