---
title: opened()
framework: automator
role: symbol
role_heading: Instance Method
path: automator/amaction/opened()
---

# opened()

Allows the action to initialize its user interface.

## Declaration

```swift
func opened()
```

## Discussion

Discussion The system invokes this method when the action is first added to a workflow. You should perform all initializations of an action’s user interface in this method and not in awakeFromNib. Be sure to invoke the superclass implementation of this method as the final step of your implementation.

## See Also

### Initializing and Synchronizing the Action User Interface

- [activated()](automator/amaction/activated().md)
