Event Control Scripts

Event control scripts are among the most advanced features in BarTender and should be used only by technically knowledgeable users.

Depending on the purpose of your script, you might need it to run as infrequently as one time per print job or as often as every printed item. These are the least frequent and most frequent "events" that occur in a print job, but a variety of events happen more frequently than one time per job and less frequently than every item.

To simplify the process, BarTender typically examines your single-line and multi-line scripts and tries to determine the ideal frequency with which a script should be run. For most users and most purposes, this is sufficient. Sometimes, however, you may need to have more control to explicitly state when your scripts run.

Event Types

It is possible for every data source on your template to have a separate script for every event type that is supported by BarTender. However, this is a very unlikely scenario. More realistically, if you do need to write an event script, you will need to do so only for one particular event type and probably only 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, click that item in the Script pane.

You can now insert whatever lines of VBScript you want into the Editor pane. Remember that to assign a value to a data source, you must add a line of script that starts with "Value =" somewhere in the script. You can click as many different items in the Script pane as you want and define a script for each one.

Related Topics