---
title: AMBundleAction
framework: automator
role: symbol
role_heading: Class
path: automator/ambundleaction
---

# AMBundleAction

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

## Declaration

```swift
class AMBundleAction
```

## Overview

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

- [awakeFromBundle()](automator/ambundleaction/awakefrombundle().md)

### Managing Action Properties

- [bundle](automator/ambundleaction/bundle.md)
- [hasView](automator/ambundleaction/hasview.md)
- [view](automator/ambundleaction/view.md)
- [parameters](automator/ambundleaction/parameters.md)

### Initializers

- [init(coder:)](automator/ambundleaction/init(coder:).md)

## Relationships

### Inherits From

- [AMAction](automator/amaction.md)

### Inherited By

- [AMAppleScriptAction](automator/amapplescriptaction.md)
- [AMShellScriptAction](automator/amshellscriptaction.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)

## See Also

### Actions

- [AMShellScriptAction](automator/amshellscriptaction.md)
- [AMAction](automator/amaction.md)
