Instance Method


Suspends the execution of the receiver.


- (void)suspendExecution;


Suspends the execution of the receiver only if the receiver is being executed in the current thread by Cocoa scripting's built-in Apple event handling (that is, the receiver would be returned by [NSScriptCommand currentCommand])—otherwise, does nothing. A matching invocation of resumeExecutionWithResult: must be made.

Another command can execute while a command is suspended.

See Also

Suspending and resuming commands

- resumeExecutionWithResult:

If a successful, unmatched, invocation of suspendExecution has been made, resume the execution of the command.