Librarian Integration with Shared Script Libraries |
Just like with BarTender documents, you can save shared script libraries (with an extension *.btvbs) to Librarian, allowing you to track changes made to the file, revert changes, and otherwise manage the file. The process for adding a shared script file stored in Librarian to your document is the same as adding any other *.btvbs file, but there are some differences in how you can access and manage the file.
|
When you are using a script library stored in Librarian, a new menu item will appear in the File menu and the Script Library's context menu: Save and Check-in. This item is only enabled when the script library file is checked out. |
Your script library will behave differently based on whether the *.btvbs file is checked in to or out of Librarian.
If the file is checked in to Librarian:
The Shared Script Library item under the Script Libraries node in the Script pane will show a lock icon .
The File menu items Save, Save and Check-in, Import, and Open Containing Folder are disabled.
The latest version of the script file is retrieved from Librarian and used whenever the Shared Script Library is used.
If you attempt to edit the code from the Editor pane, you will first be prompted to check the file out.
If the file is checked out of Librarian:
The Shared Script Library item will show a check mark icon .
You can edit the script library's code.
The script code is placed into a temporary script file. This file is used:
As long as the Script Library is checked out.
Between closing and opening the Script Editor.
Between closing and opening documents.
Changes made to the selected script library code will be automatically saved to the temporary file when:
You exit the current Script Library node.
You click Test Script at the top of the Editor pane.
You close the Script Editor.
The contents of the temporary file are used when running scripts.
For more information about Librarian and how it functions, refer to the Librarian section of the BarTender help system (under Companion Applications).
Related Topics