Instance Method

finishRunningWithError:

Causes the action to stop running and return an error, which, in turn, causes the workflow to stop.

Declaration

- (void)finishRunningWithError:(NSError *)error;

Parameters

error

The error to be returned to Automator.

Discussion

This method is intended to be called by any action that overrides runAsynchronouslyWithInput: in order to make asynchronous calls. Note that when finishRunningWithError: is invoked, it immediately calls willFinishRunning.

See Also

Controlling the action

- didFinishRunningWithError:

Sent by the receiver to itself when it has finished running asynchronously.

Deprecated
- reset

Resets the receiver to its initial state.

- runAsynchronouslyWithInput:

Causes Automator to wait for notification that the receiver has completed execution, which allows the receiver to perform an asynchronous operation.

- runWithInput:error:

Requests the receiver to perform its task using the specified input.

- runWithInput:fromAction:error:

Requests the receiver to perform its task using the specified input from the specified action.

Deprecated
- stop

Stops the receiver from running.

- willFinishRunning

Invoked by Automator when the receiver has essentially completed its run phase.