Sets a script error string that is associated with execution of the command.
- macOS 10.0+
A string that describes an error.
If you override
perform and an error occurs, you should call this method to supply a string that provides a useful explanation. In fact, any script handler should call this method when an error occurs.
Calling this method alone does not cause an error message to be be displayed—you must also call
script to supply an error number.