app.activeDocument.variables
Description
The collection of jsobjref/Variable
objects in the document.
For an example of how to create variables, see jsobjref/Dataset.usingVariablesAndDatasets
.
app.activeDocument.variables.length
Description
The number of variables in the document
Type
Number; read-only.
app.activeDocument.variables.parent
Description
The object that contains the collection of variables
Type
Object; read-only.
app.activeDocument.variables.typename
Description
The class name of the referenced object.
Type
String; read-only.
app.activeDocument.variables.add()
Description
Adds a new variable to the collection.
Returns
jsobjref/Variable
app.activeDocument.variables.getByName(name)
Description
Get the first element in the collection with the provided name.
Parameters
Parameter | Type | Description |
---|---|---|
name |
String | Name of element to get |
Returns
jsobjref/Variable
app.activeDocument.variables.index(itemKey)
Description
Gets an element from the collection.
Parameters
Parameter | Type | Description |
---|---|---|
itemKey |
String, Number | String or number key |
Returns
jsobjref/Variable
app.activeDocument.variables.removeAll()
Description
Deletes all elements in this collection.
Returns
Nothing.