Skip to content

Variable

app.activeDocument.variables[index]

A document-level variable that can be imported or exported.

A variable is a dynamic object used to create data-driven graphics.

For an example, see Dataset.

Variables are accessed in Illustrator through the Variables palette.


app.activeDocument.variables[index].kind

The variable’s type.

VariableKind


app.activeDocument.variables[index].name

The name of the variable.

string


app.activeDocument.variables[index].pageItems

All of the artwork in the variable.

PageItems; read-only


app.activeDocument.variables[index].parent

Read-only. The object that contains the variable.

Object


app.activeDocument.variables[index].typename

The class name of the referenced object.

String; read-only


app.activeDocument.variables[index].remove()

Removes the variable from the collection of variables.

Nothing.