Using start and finish protocol 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 Open the protocol file, and then click Protocol Options.
2 Click the
Startup Script or the
Finish Script field, and then click the

button that appears.
The Input Text dialog box appears.
3 Do one of the following:
• Type the JavaScript code in the box.
• 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