Writing Script Libraries

A script library is a file that contains code in the form of functions and subroutines. After you create a script library, you can write new code or modify the existing code.

ClosedTo modify an existing script library by using the Script Editor

  1. In the Script pane, click the script library name.

  2. In the Editor pane, create your scripts. You can enter multiple functions and subroutines.

  3. On the Script Editor File menu, click Save to save your changes.

ClosedTo import content into a script library

These instructions describe how to import the contents of a saved file into a script library. When you import the file, any existing contents in the script library is deleted and replaced with the contents of the file. Therefore, we recommend that you import code into only a new or empty script library.

  1. In the Script pane, click the script library name.

  2. On the Script Editor File menu, click Import. Alternatively, right-click the script library, and then click Import.

  3. Browse for the .btvbs file whose contents you want to import into the script library.

  4. Select the file, and then click Open to import the code.