TechnologiesApp Extensions & System Integration

Automator

iOSmacOStvOSwatchOSvisionOS

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.

  • Cl
    AMActionmacOS 10.4+
    An abstract class that defines the behavior of a single Automator action within a workflow.
  • Cl
    AMAppleScriptActionmacOS 10.4+
    An action class whose task is implemented as an AppleScript script.
  • Cl
    AMShellScriptActionmacOS 10.4+
    An action class whose task is implemented as a shell script.
  • Cl
    AMBundleActionmacOS 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.

  • Cl
    AMWorkflow
    An object that represents an ordered sequence of Automator actions that can be run as a unit.
  • Cl
    AMWorkspace
    An 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.

  • Cl
    AMWorkflowView
    A view that displays the actions of a workflow and lets the user edit them.
  • Cl
    AMWorkflowController
    A controller that manages the loading, running, and editing of a workflow in a view.
  • Pr
    AMWorkflowControllerDelegate
    A 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.

  • St
    AMError
    A structure that describes errors reported while building or running Automator actions and workflows.
  • En
    AMLogLevel
    Constants 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
    __AMWorkflowControllerFlags
    A private bit-field structure storing internal state for a workflow controller.
  • St
    __AMWorkflowControllerDelegateRespondTo
    A private bit-field structure caching which delegate methods a workflow controller's delegate implements.
  • St
    __AMWorkflowViewFlags
    A private bit-field structure storing internal state for a workflow view.

Extends 1

NSObject
← App Extensions & System Integration