Instance Method


Suspends the execution of the receiver.


func 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 resumeExecution(withResult:) must be made.

Another command can execute while a command is suspended.

See Also

Suspending and resuming commands

func resumeExecution(withResult: Any?)

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