Instance Method


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


- (void)runAsynchronouslyWithInput:(id)input;



The input for the action. Should contain one or more objects compatible with one of the types specified in the action’s AMAccepts property.


This method is intended to be overridden only by actions that need to make asynchronous calls. After runAsynchronouslyWithInput: is invoked, Automator does not continue until the action invokes finishRunningWithError:. So in your override of this method, you can make an asynchronous call, wait to be notified of its completion, then invoke finishRunningWithError: to signal to Automator that the action has completed.

For actions that do not need to make asynchronous calls, the preferred method is runWithInput:fromAction:error:.

See Also

Controlling the action

- didFinishRunningWithError:

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

- finishRunningWithError:

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

- reset

Resets the receiver to its initial state.

- 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.

- stop

Stops the receiver from running.

- willFinishRunning

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