Contents

execute(completionHandler:)

Executes the script with no input and ignoring any result.

Declaration

func execute(completionHandler handler: NSUserScriptTask.CompletionHandler? = nil)
func execute() async throws

Parameters

  • handler:

    The completion handler Block that returns the result or an error. See Completionhandler.

Discussion

This method should be invoked no more than once for a given instance of the class.

If the script completed normally, the completion handler’s error parameter will be nil.

See Also

Related Documentation