Watch.InstallResource

The Watch.InstallResource(path) method copies or unpacks a resource, such as a Connect Designer template, Data Mapping Configuration, or package file, from the supplied path to the Connect resources folder (%PROGRAMDATA%\Objectif Lune\PlanetPress Workflow 8\PlanetPress Watch\OLConnect).
If a file already exists, it will be overwritten.
The original resource file, which is processed by this functionality, will not be deleted or altered in any way.

The Workflow process will wait for the file(s) to be unpacked or copied to the Connect resources folder, so that the next plugin in line that uses an installed resource will have the latest, up-to-date version of the file.

Files in the Connect resources folder are visible in Workflow's Configuration Components pane under Connect Resources (see OL Connect resources).

Syntax

Watch.InstallResource(path)

path

A string containing the resource path.

Examples

JavaScript

Watch.InstallResource("c:\\myfile.ol-package");

VBScript

Watch.InstallResource "c:\myfile.ol-package"

Python

Watch.InstallResource("c:\\myfile.ol-package");

Perl

$Watch->InstallResource("c:\\myfile.ol-package");