Upload a script for a power state transition rule

Surveyor 6.x

Knowledge Base

When you use a use a power state transition rule to prevent application errors during a power state change, you have the option to run a power state transition script. A power state transition script can include commands that cause the application to save its content in a temporary location, and perform any other necessary tasks.

Surveyor supports power state transition scripts written in JavaScript or VBScript. You must create and edit power state transition scripts outside of Surveyor, make sure they are digitally signed before you upload them, and then upload the scripts into Surveyor. For details on signing scripts, see Signing power state transition scripts with digital certificates.

To upload scripts:

  1.  On the Verdiem menu , click Power Transition Rule.
  2.  Click the Power Transition Scripts tab, and then click Upload Script.
  3.  Select the script and type a name for the script.

    You can view the code for the script by clicking + Show Script.

  4.  Click Upload & Save. The script is now available for power state transition rules when you select theRun script before sleep or shutdown or Run script before sleep or shutdown option in the New Power State Transition Rule dialog box. See Assign a custom script to a power state transition rulefor details.