7.0

Table Of Contents
Use Functions created for PlanetPress Watch/Server in Scripts (Page 227)
12.1.9 Use Functions created for PlanetPress Watch in Scripts
You can integrate functions that were created especially for PlanetPress Watch/Server directly into your own
scripts. For example, you can add the PW_GetJobFileName function in your script to access a data file
currently running in a process, and let your script manipulate the data.
The examples included in this section are given in VBScript (Microsoft® Visual Basic® Scripting Edition).
VBScript is a subset of the Microsoft® Visual Basic® programming language that can be interpreted by Web
browsers, by Microsoft® ActiveX® Controls, by Automation servers, and by Java applets. When you use these
functions in scripts written in other languages in the editor, you must use your language’s own syntax.
The following functions are available:
PW_ShowMessage: Displays a message in a dialog box (see PW_ShowMessage.
PW_GetJobFileName: Returns the job filename, which is the data file currently being processed (see
PW_GetJobFileName).
PW_GetOriginalFileName: Returns the original name the file had when it was captured by PlanetPress
Watch (see PW_GetOriginalFileName).
PW_InputBox: Displays an input window to allow the user to enter a value (see PW_InputBox).
Using Scripts - Detailed Directions
Objectif Lune Inc. © 2009 227