3.1.1. Open a Script Editor

About this task

The buttons on the Scripts tab enable you to open a script editor to create a new script or modify an existing script.

  • New script.
  • Existing script.
  • Duplicate script.
Note: All scripts that are listed for a class on the Scripts tab and in the Workbench Basic Control Engine>Scripts right pane will be included in the class if the class is exported/imported to another project. They are listed even if you cancelled creating them and/or did not compile them. You can delete any action by selecting an ID and clicking Delete.

Procedure

New Script
  1. Click New on the Scripts tab in the Class dialog box.

    The New Script Name dialog box displays.

  2. Enter a unique name in the Script field.

    A Script name is

    • Is up to 15 characters.
    • Can have alphanumeric characters.
    • Can have underscores.
    • Cannot have spaces.
  3. Select the type of script you want to create.
  4. Click OK.

    Result: A blank script editor opens.

Existing Script Properties
  1. Select an existing script.
  2. Click Properties.

    Result: A script editor with the existing script opens.

Duplicate Script
  1. Select an existing script.
  2. Click Duplicate.

    A New Script Name dialog box opens.

  3. Enter a unique name for the script that adheres to the script ID requirements.
  4. Click OK.

Results

The duplicate script is added to the list on the Scripts tab.