# Open File

Action `doc.viewfinder`

`action.open_file`

Open a file in its default application using macOS Launch Services. For example, a `.pdf` opens in Preview, a `.png` in Photos, and a `.txt` in TextEdit. The file path supports payload variable interpolation.

## Ports

Direction | Name | Data Type | Description
--- | --- | --- | ---
Input | Input | Any | Incoming payload
Output | Output | Any | Passthrough after file opens

## Configuration

Field | Type | Default | Description
--- | --- | --- | ---
filePath | File Picker | — | Path to the file to open. Supports `{{var}}` interpolation.

## Output Variables

Variable | Type | Description
--- | --- | ---
opened | Boolean | Whether the file was opened
filePath | String | The resolved file path

## Example

Open a newly created report: