When should I use Macros?
Use macros to execute commands with a dynamic variable such as the date, time, and so on. To do this, define the variable name and value that you wish to substitute in the command.
Macros are defined using JavaScript.
Note
Only assignment statements are valid. Loops, function definitions, and all other JavaScript constructs are not supported. Assignment statements can use all operators and functions defined for the objects used in the statements.
For more information, see Macros.