VWorks User Guide : Creating a protocol: advanced topics : Using start and finish protocol scripts

Using start and finish protocol scripts
About start and finish scripts
A startup protocol script is a JavaScript that runs before the Startup Protocol begins. A finish protocol script is a JavaScript that runs after the Cleanup Protocol finishes. For example, you can use an open () statement to open and load a file.
Procedure
To add start or finish scripts:
1
2
Click the Startup Script or the Finish Script field, and then click the button that appears.
 
The Input Text dialog box appears.
 
3
Click Browse. In the Open dialog box, select a file that contains the JavaScript code, and click Open.
4
Click OK to save the changes and return to the VWorks window.
Related information