suspendExecution()
Suspends the execution of the receiver.
Declaration
func suspendExecution()Discussion
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.