Contents

AMWorkflowController

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

Declaration

class AMWorkflowController

Overview

A controller can run and stop a workflow and obtain information about its state. The controller’s delegate (AMWorkflowControllerDelegate) receives messages as the workflow is executed and its actions are run.

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

Topics

Accessing the Workflow

Accessing the Workflow View

Accessing the Delegate

Controlling the Workflow

Getting Workflow Information

See Also

Workflows