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 OL Connect resources).
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");