Contents

selectedOutputType

The type of output, in UTI format, of the output to be produced by the action.

Declaration

var selectedOutputType: String? { get set }

Discussion

Getting this value provides the type of output the action is configured to produce. For example, your action may have the ability to output files and folders, or documents, depending on how it’s configured or what it encounters while processing.

The output types the action supports are specified in the action’s Info.plist file. By default, this property defaults to the first output type in the Info.plist file.

Set this value to explicitly specify the output type the action produces. Setting this value to accurately reflect the appropriate output helps Automator determine whether the output is compatible, or can be made compatible, with the next action in the workflow.

See Also

Getting Action Information