Datasets
Datasets
Section titled “Datasets”app.activeDocument.dataSets
Description
Section titled “Description”A collection of Dataset objects.
Properties
Section titled “Properties”Datasets.length
Section titled “Datasets.length”app.activeDocument.dataSets.length
Description
Section titled “Description”The number of datasets in the collection.
Number; read-only.
Datasets.parent
Section titled “Datasets.parent”app.activeDocument.dataSets.parent
Description
Section titled “Description”The name of the object that contains this dataset.
Document; read-only.
Datasets.typename
Section titled “Datasets.typename”app.activeDocument.dataSets.typename
Description
Section titled “Description”The class name of the referenced object.
String; read-only.
Methods
Section titled “Methods”Datasets.add()
Section titled “Datasets.add()”app.activeDocument.dataSets.add()
Description
Section titled “Description”Creates a new dataset object.
Returns
Section titled “Returns”Datasets.getByName()
Section titled “Datasets.getByName()”app.activeDocument.dataSets.getByName(name)
Description
Section titled “Description”Gets the first element in the collection with the specified name.
Parameters
Section titled “Parameters”Parameter | Type | Description |
---|---|---|
name | String | Name of element to get |
Returns
Section titled “Returns”Datasets.index()
Section titled “Datasets.index()”app.activeDocument.dataSets.index(itemKey)
Description
Section titled “Description”Gets an element from the collection.
Parameters
Section titled “Parameters”Parameter | Type | Description |
---|---|---|
itemKey | String, Number | String or number key |
Returns
Section titled “Returns”Datasets.removeAll()
Section titled “Datasets.removeAll()”app.activeDocument.dataSets.removeAll()
Description
Section titled “Description”Removes all elements in the collection.
Returns
Section titled “Returns”Nothing.