2020.2

Table Of Contents
All values are expressed in points (72 points per inch).
NOTE: the PDF's coordinate system has its origin on the bottom left corner of the page,
extending up and to the right. Therefore, a Letter-sized page has the following rectangular
values:
Stopping execution
When using a script, you may come to a point where you'd like the task to fail (raise an error)
and trigger your On Error tab under certain conditions (see "Using the On Error tab" on
page97). This can be done by using the scripting language's built-in error features, described
here.
Note that the value or description of the error will not be available to your error process if one is
used. However, when available, a description of the error message will be logged in the Watch
log.
VBScript
In VBSCript, the Err.Raise method will halt the execution of the script and trigger the On Error
tab unless you previously specified On Error Resume Next. See MSDN for the Raise method
properties and this page for a list of available errors to raise. In the case of VBScript, the error
number used will determine the message shown in the log. You can also override the standard
error message by providing your own:
Dim s
s = Watch.GetJobInfo(9)
Page 272