Writing Script Libraries

A script library is simply a file containing code in the form of functions and subroutines. Once you have created a script library, you can write new code or modify the existing code at any point.

ClosedTo modify an existing script library using the Script Editor

  1. In the Script pane, click the Script Library name.

  2. Create your script(s) in the Editor pane. You can enter multiple functions and subroutines.

  3. From the Script Editor's File menu, select Save to save your changes.

ClosedTo import content into a Script Library

These instructions will importing the contents of a saved file into a script library. If you continue, the contents of the script library will be deleted and replaced with the content of the file. For this reason, it is suggested that you import code only into a new or empty script library.

  1. In the Script pane, click the Script Library name.

  2. From the Script Editor's File menu or from the Script Library's context menu, select Import.

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

  4. Select the file and click Open to complete the import of code.