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

DirectionNameData TypeDescription
InputInputAnyIncoming payload
OutputOutputAnyPassthrough after file opens

Configuration

FieldTypeDefaultDescription
filePathFile PickerPath to the file to open. Supports {{var}} interpolation.

Output Variables

VariableTypeDescription
openedBooleanWhether the file was opened
filePathStringThe resolved file path

Example

Open a newly created report: