8.8

Table Of Contents
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
page110
Retrieves a string containing the job path and file
name located in the job spool folder.
Example Usage: str = Watch.getjobfilename
"Watch.GetOriginalFileName" on
page111
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 page112
Retrieves a string containing the job's metadata path
and filename. This is useful when using the Metadata
API in your script.
Example Usage: str = Watch.getmetadatafilename
"Watch.GetJobInfo" on page113 Retrieves the content of a numbered job info (%1 to
%9).
Example Usage: str = Watch.getjobinfo(9)
"Watch.GetVariable" on page115 Retrieves the content of a local or global variable by
name.
Page 106