You use the
AMWorkflow 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
AMWorkflow to control its execution. Together, these three classes provide a Model-View-Controller suite for working with workflows.
- macOS 10.5+
You can use Interface Builder to add an instance of
AMWorkflow to a window in your application. You can then add an
AMWorkflow object to the nib window and use the controller’s
workflow outlet to connect it to the workflow view. The controller object also has
stop: actions that can be connected to buttons or other user interface elements.