runWorkflow(atPath:withInput:)
Loads and runs the specified workflow file.
Declaration
func runWorkflow(atPath path: String!, withInput input: Any!) throws -> AnyParameters
- path:
A path that specifies the location of the workflow file.
- input:
The input for the first action in the workflow. Pass
nilif the first action doesn’t need input.
Return Value
nil if an error occurs or if the action completes successfully without producing output; otherwise, the output of the last action in the workflow.