2018.2

Table Of Contents
Note
While the functions here are in mixed case to simplify reading, it's important to note that
some languages (especially JavaScript) are case-sensitive and will require the proper
case. Examples in this chapter will always use the proper case when relevant.
Here is a list of the methods and functions that are available to you through the automation
object (or "Watch" object). While these examples are all in VBScript, you can click on any
variable name to open a page to see examples for each supported language.
Variable Name Description
Example Usage (VBScript)
"Watch.GetJobFileName" on
page150
Retrieves a string containing the job path and file
name located in the job spool folder.
Example Usage: str = Watch.getjobfilename
"Watch.GetOriginalFileName" on
page151
Retrieves a string containing the job's original path
and filename. Note: this filename is generally no
longer available if it has been captured by Watch.
Example Usage: str = Watch.getoriginalfilename
"Watch.GetMetadataFilename"
on page152
Retrieves a string containing the job's metadata path
and filename. This is useful when using the Metadata
API in your script. (See Metadata API.)
Example Usage: str = Watch.getmetadatafilename
"Watch.GetJobInfo" on page153 Retrieves the content of a numbered job info (%1 to
%9).
Example Usage: str = Watch.getjobinfo(9)
Page 146