Event Control Scripts

Event Control Scripts are among the most advanced features in BarTender and should be used only by technically knowledgeable individuals.

Depending on the purpose of your script, you might need it to execute as infrequently as once per print job or as often as every single printed item. These are respectively the least frequent and most frequent "events" that occur in a print job. In between, however, there is a variety of events that happen more frequently than once per job but less frequently than every single item.

To keep things as simple as possible, BarTender will normally examine your single-line and multi-line scripts and attempt to determine the ideal frequency with which a script should be executed. For most users and most purposes, this will be sufficient. Sometimes, however, you may need more control and need to explicitly state when your scripts will execute.

Event Types

Although it is very unlikely you would ever need to do so, every data source on your template could potentially have a separate script for every event type supported by BarTender. It is more realistic that, if you do need to write an event script, you will need to do so only for one particular event type and probably just for one or a few data sources.

BarTender supports the use of the following Event Control scripts:

Selecting the Events for Which to Write Scripts

Each line item in the Script pane corresponds to a separate script. When you want to write a script for a given event, simply click on that item in the Script pane.

You can now insert whatever lines of VBScript you desire into the Editor pane. (Don’t forget that to assign a value to a data source, a line of script beginning with "Value =" needs to appear somewhere in the script.) You can click on as many different items in the Script pane as you want and define a script for each one.

Related Topics