Editing Scripts

To edit an existing script from the Resource Browser:

  1. From the Resource Browser, select the script to be edited. Scripts are nested in script palette folders.

  2. rb_scripts.png 

  3. Select Edit from the Resources menu.

  4. Alternatively, open the script palette from the Resource Browser. Press Option (Mac) or Alt (Windows) and double-click the script to be edited.

    script_palette.png 

  5. The Script Editor opens, displaying the script source code. See Creating Scripts for a description of the Script Editor.

Moving a Script to Another Palette

To move a script from one palette to another:

  1. From the Resource Browser, select the script palette containing the desired script, and then select Open from the Resources menu. Alternatively, open the palette from the Window > Script Palettes menu.

  2. The source script palette opens.

  3. Select the script palette where the script will be moved, and then select Open from the Resources menu.

  4. The destination script palette opens.

  5. Click the script to move, and then press Command+X (Mac) or Ctrl+X (Windows). The script is removed from the palette and placed into the clipboard.

  6. Click the destination script palette, and then press Command+V (Mac) or Ctrl+V (Windows). The script is placed into the selected script palette.

Alternatively, move the script by selecting it from the Resource Browser and selecting Move from the Resources menu. Specify the new script palette location for the script. See Using the Resource Browser for more information.

Encrypting Scripts

A script can be encrypted and locked to prevent editing.

To encrypt a script file:

  1. Select Tools > Plug-ins > Encrypt Script.

  2. The Choose Script File dialog box opens.

  3. Locate and select the script file to encrypt.

  4. Click Open.

  5. The Save Encrypted VectorScript Code Document dialog box opens.

  6. Enter a new name for the script, and then select the location for saving the file.

  7. Click Save.

The script is saved in an encrypted format.

~~~~~~~~~~~~~~~~~~~~~~~~~

Running Scripts

Creating Scripts

Using the Resource Browser

Creating a Script Palette

Using Scripts

 

vectorworks.net