About Macro Variables
Variables handle the way that data flows between macro commands. Variables are generated automatically when macros are recorded. They don’t need to be edited manually, but they can be changed when necessary. Variables are visible and editable both in the expanded script view and in the Macro Properties panel.
Variables are also visible in code view each time a command is called. For example, the following code shows variables "doc2" and "doc1".
There are two kinds of variables in Image-Pro: user variables and global variables. User variables are those that are automatically created when macros are recorded and those that you create through the Scripting Workbench. User variables are scoped to specific scripts to be used to reference specific objects, for example specific images or documents. Global variables, on the other hand, allow you to access contextual data sources such as the currently-active image or the currently-active document.
See also:
- For more information, click on the Scripting Workbench tool on the Scripting tab to open the Scripting Workbench, then click the Help tool in the top right corner of the Scripting Workbench application window to view all help options.