Instance Method

willFinishRunning()

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

Declaration

func willFinishRunning()

Discussion

This method is intended to be overridden only by actions that need to make asynchronous calls. An action can use this method to perform cleanup operations, such as closing windows and deallocating memory.

See Also

Controlling the action

func finishRunningWithError(Error?)

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

func reset()

Resets the receiver to its initial state.

func runAsynchronously(withInput: Any?)

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

func run(withInput: Any?) -> Any

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

func stop()

Stops the receiver from running.