2020.2

Table Of Contents
VBScript
Watch.ExecuteExternalProgram "lpr -S 192.168.100.001 -P auto
c:\myfile.ps", "c:\", 0, true
Python
Watch.ExecuteExternalProgram("lpr -S 192.168.100.001 -P auto
c:\\myfile.ps", "c:\\", 0, True)
Perl
$Watch->ExecuteExternalProgram("lpr -S 192.168.100.001 -P auto
c:\myfile.ps", "c:\", 0, true);
Watch.ExpandResourcePath
The Watch.ExpandResourcePath method expands a Connect resource file name (e.g.
invoice.OL-template) to its fully qualified path (e.g. C:\ProgramData\Objectif Lune\PlanetPress
Workflow\Documents\invoice.OL-template). It returns empty ('') if the resource does not exist,
and will log an empty line next to the task number if logged.
Files in the Connect resources folder are visible in Workflow's Configuration Components pane
under Connect Resources (see "Connect resources" on page39).
Syntax
Watch.ExpandResourcePath(filename)
filename
A string containing the file name.
Examples
JavaScript
Watch.ExpandResourcePath("invoice.OL-template");
VBScript
Watch.ExpandResourcePath "invoice.OL-template"
Python
Watch.ExpandResourcePath("invoice.OL-template");
Page 162