Editor Pane

The Editor pane, located in the center of the Script Editor, is where you write your scripts. Any custom script that you write will be executed when you print your document.

There are two ways you can write your scripts. You can manually enter your script into the pane, or you can use the Script Assistant pane and browse through BarTender's library of code snippets. When you double-click on a snippet, it will automatically be entered into the editing area of the Editor pane.

To open a list of available snippets, press Ctrl+J on your keyboard and start typing the desired snippet name. When the correct one appears in the list, select it and press Enter on your keyboard.

The Editor Pane Toolbar

The editor pane toolbar, located above the editor pane, is used to customize your scripts:

Deletes the text but copies it to the clipboard so you can paste it elsewhere.

Copies the text to the clipboard so you can paste it elsewhere.

Pastes a copy of the text stored in the clipboard into the Editor pane.

Reverses the previous action.

Reverses the previously undone action.

Indents the text.

Unindents the text.

Comments the selected line of code.

Uncomments the selected line of code.

Tests the script and displays the results in the Output pane.

Protecting a VBScript

You can password-protect a visual basic script to prevent unauthorized users from editing it. This process is set up in the BarTender Document Password dialog, and completed in the Editor pane of the Script Editor.

ClosedTo protect a VBScript

  1. Open BarTender.

  2. Open the document that contains the VBScript you want to protect.

  3. From the File menu, select BarTender Document Password to open the BarTender Document Password dialog.

  4. Under New Password, enter a password.

  5. Under Confirm Password, re-enter the password.

  6. Enter a password hint if you wish.

  7. Under Protected Actions, select Modify Protected VB Script(s).

  8. Click OK to close the dialog.

  9. From the open BarTender document, open the VBScript you wish to protect in the Script Editor.

  10. At the bottom of the Editor pane, enable Protected by Document Password.

  11. Click Close to close the Script Editor. The next time a user attempts to open the protected VBScript, they will be prompted to enter the Document Password you have set.

Related Topics