The following commands provide ways to stop execution in the middle of the macro.
Exit [message]
Stops running the macro as if it had been completed successfully, optionally displaying the given message.
Die [message]
Stops running the macro and alerts the user to a failure, which can be described by the optional message.
Require Pro Version version v1.2
If the version of Nisus Writer Pro running the macro does not meet or exceed the specified version then the user is presented with a message that describes the constraint and the macro is stopped. The version should be a Pro display version string or decimal number, eg:
Require Pro Version "1.0.2"
Require Pro Version 1.3
Unfortunately this command is not available in all versions of Nisus Writer Pro. To display error messages properly when requiring version 1.2 and beyond the following code should be used:
# the first command alerts users who are using versions 1.0 to 1.1
Require Application Version 3.2 # don't change
Require Pro Version 1.3 # change "1.3" as needed
Require OSX Version version v1.3
If the version of Mac OSX running the macro does not meet or exceed the specified version then the user is presented with a message that describes the constraint and the macro is stopped. The version argument can be either a string or decimal number, eg:
Require OSX Version 10.5
Require OSX Version "10.4.11"
Previous Chapter For Each with Ranges |
<< index >> |
Next Chapter Custom Commands |