willFinishRunning()
Provides an opportunity for an action to perform cleanup operations, such as closing windows and deallocating memory.
Declaration
func willFinishRunning()Discussion
Overridde this method in actions that need to make asynchronous calls. Automator invokes this method when the action is about to complete its run phase.