Variable
Variable
Section titled “Variable”app.activeDocument.variables[index]
Description
Section titled “Description”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.
Properties
Section titled “Properties”Variable.kind
Section titled “Variable.kind”app.activeDocument.variables[index].kind
Description
Section titled “Description”The variable’s type.
Variable.name
Section titled “Variable.name”app.activeDocument.variables[index].name
Description
Section titled “Description”The name of the variable.
string
Variable.pageItems
Section titled “Variable.pageItems”app.activeDocument.variables[index].pageItems
Description
Section titled “Description”All of the artwork in the variable.
PageItems; read-only
Variable.parent
Section titled “Variable.parent”app.activeDocument.variables[index].parent
Description
Section titled “Description”Read-only. The object that contains the variable.
Object
Variable.typename
Section titled “Variable.typename”app.activeDocument.variables[index].typename
Description
Section titled “Description”The class name of the referenced object.
String; read-only
Methods
Section titled “Methods”Variable.remove()
Section titled “Variable.remove()”app.activeDocument.variables[index].remove()
Description
Section titled “Description”Removes the variable from the collection of variables.
Returns
Section titled “Returns”Nothing.