execute(completionHandler:)
Executes the script with no input and ignoring any result.
Declaration
func execute(completionHandler handler: NSUserScriptTask.CompletionHandler? = nil)func execute() async throwsParameters
- 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.