Skip to content

Datasets

app.activeDocument.dataSets

A collection of Dataset objects.


app.activeDocument.dataSets.length

The number of datasets in the collection.

Number; read-only.


app.activeDocument.dataSets.parent

The name of the object that contains this dataset.

Document; read-only.


app.activeDocument.dataSets.typename

The class name of the referenced object.

String; read-only.


app.activeDocument.dataSets.add()

Creates a new dataset object.

Dataset


app.activeDocument.dataSets.getByName(name)

Gets the first element in the collection with the specified name.

ParameterTypeDescription
nameStringName of element to get

Dataset


app.activeDocument.dataSets.index(itemKey)

Gets an element from the collection.

ParameterTypeDescription
itemKeyString, NumberString or number key

Dataset


app.activeDocument.dataSets.removeAll()

Removes all elements in the collection.

Nothing.