Contents

AMWorkflow

An object that lets you use an Automator workflow in your app.

Declaration

class AMWorkflow

Overview

A workflow consists of one or more actions, discrete tasks which together can perform complex automation tasks. Your app can use workflows to package its own features and to take advantage of features provided by other apps. You create actions with Xcode, while you create workflows with the Automator app.

You can load and run a workflow with minimal overhead by using the class method run(at:withInput:). However, in situations where you need greater control, such as the ability to start and stop the workflow, you can use an instance of the AMWorkflowController class instead. In that case, you must create and initialize both the workflow and the workflow controller objects.

In either case, the workflow runs in a separate process so that any actions it contains are executed in a separate memory space. That helps to insulate your app from crashes, memory leaks, or exceptions that might occur from running the actions in the workflow.

You can display a workflow with an instance of AMWorkflowView.

Topics

Creating a Workflow

Running a Workflow

Saving Changes to a Workflow

Getting Information About a Workflow

Working with the Workflow’s Input and Output

Manipulating the Workflow

Manipulating the Workflow’s Actions

Initializers

See Also

Workflows