Using Variables |
Variables are placeholders that represent specific information at the time that an action runs. Among other uses, these variables can specify such things as a document file name, current date and time, and additional command parameters.
Action variables are set after an action runs. The value can be read or written to at any time while the actions are running and is reset for each new event.
Event variables are set when the event occurs and are used as input by actions. The value can be read or written to at any time while the actions are running.
Global variables can be referenced by any action. The variable value can be read or written to at any time when the event is running, and it is reset for each new event. BarTender provides predefined global variables, and you can also create custom global variables.
Operating system variables are inherited from the system. Their values are associated with your operating system environment variables. They can be read by any action, but actions cannot write to them.
You can create custom global variables to support all the actions in a BarTender document.
Using Expressions with Variables
Advanced users who have knowledge of the JavaScript language can use expressions to perform string, mathematical, or other advanced operations on variables.
Use this dialog to add a variable to the selected property on the action's property page.