Automator lets your macOS app create, run, and embed Automator actions and workflows to automate system tasks. You build actions by subclassing AMAction or its specialized subclasses AMAppleScriptAction, AMShellScriptAction, and AMBundleAction, and you assemble and execute them as an AMWorkflow. To present and control workflows in your interface, use AMWorkflowView and AMWorkflowController with its AMWorkflowControllerDelegate, and use AMWorkspace to run existing workflow files. Errors are reported through AMError, and AMLogLevel configures logging detail.
Actions 4
The base action class and its specialized subclasses for building Automator action units.
- ClAMActionmacOS 10.4+An abstract class that defines the behavior of a single Automator action within a workflow.
- ClAMAppleScriptActionmacOS 10.4+An action class whose task is implemented as an AppleScript script.
- ClAMShellScriptActionmacOS 10.4+An action class whose task is implemented as a shell script.
- ClAMBundleActionmacOS 10.4+An action class implemented as a loadable bundle, typically using Objective-C or a compiled language.
Workflows 2
Types for assembling, executing, and running Automator workflows.
- ClAMWorkflowAn object that represents an ordered sequence of Automator actions that can be run as a unit.
- ClAMWorkspaceAn object that runs existing Automator workflow files outside of your interface.
Presenting Workflows 3
View and controller types for displaying and managing workflows in your interface.
- ClAMWorkflowViewA view that displays the actions of a workflow and lets the user edit them.
- ClAMWorkflowControllerA controller that manages the loading, running, and editing of a workflow in a view.
- PrAMWorkflowControllerDelegateA protocol for responding to events from a workflow controller as a workflow runs.
Errors and Logging 2
Types that report Automator failures and configure logging detail.
- StAMErrorA structure that describes errors reported while building or running Automator actions and workflows.
- EnAMLogLevelConstants that specify the level of detail used when logging Automator activity.
Internal State 3
Private bit-field structures backing the workflow controller and view.
- St__AMWorkflowControllerFlagsA private bit-field structure storing internal state for a workflow controller.
- St__AMWorkflowControllerDelegateRespondToA private bit-field structure caching which delegate methods a workflow controller's delegate implements.
- St__AMWorkflowViewFlagsA private bit-field structure storing internal state for a workflow view.