2020.1

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 JavaScript, 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
page165
Retrieves a string containing the job path and file
name located in the job spool folder.
Example Usage:
var s = Watch.GetJobFilename();
"Watch.GetOriginalFileName" on
page167
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:
var s = Watch.GetOriginalFileName();
"Watch.GetMetadataFilename" on
page166
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:
var s = Watch.GetMetadataFileName();
"Watch.GetJobInfo" on page166 Retrieves the content of a numbered job info (%1 to
%9).
Example Usage:
var s = Watch.GetJobInfo(9);
Page 157