2022.1

Table Of Contents
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40).
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");
Perl
$Watch->ExpandResourcePath("invoice.OL-template");
Watch.ExpandString
Provides access to the emulated job file and to all variables. This function returns a string that
is the expanded version of the input string.
Page 162