Contents

AMBundleAction

An object that represents an Automator action that’s a loadable bundle.

Declaration

class AMBundleAction

Overview

Automator loads action bundles from standard locations in the file system: /System/Library/Automator, /Library/Automator, and ~/Library/Automator.

AMBundleAction objects have several important properties:

  • The Bundle object associated with the action’s physical bundle

  • The action’s view, which holds its user interface

  • A parameters dictionary that reflects the settings in the user interface

When you create a Cocoa Automator Action project in Xcode, the project template includes a custom subclass of AMBundleAction. This custom class uses the name of the project.

You must provide an implementation of run(withInput:), which is declared by the superclass AMAction. If you add any instance variables, you must override the init(definition:fromArchive:) method and the write(to:) method of AMAction to work with them.

Topics

Initializing the Action

Managing Action Properties

Initializers

See Also

Actions