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

# activated()

Allows the action to synchronize its information with settings in another app.

## Declaration

```swift
func activated()
```

## Discussion

Discussion The system invokes this method when the window of the Automator workflow to which the action belongs becomes the main window. Be sure to invoke the superclass implementation of this method as the last thing in your implementation.

## See Also

### Initializing and Synchronizing the Action User Interface

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