---
title: "write(to:)"
framework: automator
role: symbol
role_heading: Instance Method
path: "automator/amaction/write(to:)"
---

# write(to:)

Examines the parameters and other configuration information specified in the passed dictionary and adds its own information to it if appropriate.

## Declaration

```swift
func write(to dictionary: NSMutableDictionary)
```

## Parameters

- `dictionary`: A dictionary that contains parameter and other configuration information about the action.

## Discussion

Discussion Automator sends this message to an action object prior to archiving it. In its implementation of this method, the action object should first invoke the superclass implementation.

## See Also

### Initializing and Encoding

- [init(definition:fromArchive:)](automator/amaction/init(definition:fromarchive:).md)
- [init(contentsOf:)](automator/amaction/init(contentsof:).md)
