7.4

Table Of Contents
within it. If your script writes to this file, the modified contents will be used by the next plugin in your process.
Example
In the following example, GetJobFileName() retrieves the name of the job file, which is then logged using Watch.Log.
VBScript
Dim s
s = Watch.GetJobFileName
Watch.Log "The job filename is: " + s, 3
Javascript
var s;
s = Watch.GetJobFilename();
Watch.Log("The job filename is: " + s, 3);
Python
s = Watch.GetJobFileName()
Watch.Log("The job filename is: " + s, 3)
Perl
$s = $Watch->GetJobFileName;
$Watch->Log("The job filename is: " + $s, 3);
Watch.GetOriginalFileName
Returns the original name of the file, when it was captured. This method is the same as PW_GetOriginalFileName.
Examples
VBScript
Watch.GetOriginalFileName
Javascript
Watch.GetOriginalFileName();
Python
Watch.GetOriginalFileName()
Perl
$Watch->GetOriginalFileName();
Watch.GetMetadataFilename
Returns the complete path and file name of the metadata file associated with the current job file.
Example
VBScript
Watch.GetMetadataFileName
Using Scripts