Specifications

Table Of Contents
Adobe Photoshop CS6
JavaScript Scripting Reference JavaScript Object Reference 37
ActionDescriptor
This object provides a dictionary-style mechanism for storing data as key-value pairs. It can be used for
low-level access into Photoshop. See an example of this usage in
Selection sample script’ on page 168.
Many configuration files use serialized action descriptors to represent their data. It is used, for example, to
encapsulate playback options in Application
.playbackParameters, and is returned by
Application
.getCustomOptions().
Properties
Methods
Property Value type What it is
count
number
Read-only. The number of keys contained in the descriptor.
typename
string
Read-only. The class name of the referenced
actionDescriptor object.
Method Parameter type Returns What it does
clear
()
Clears the descriptor.
erase
(key)
number
Erases a key from the descriptor.
fromStream
(value)
string
Creates a descriptor from a stream
of bytes; for reading from disk.
getBoolean
(key)
number
boolean
Gets the value of a key of type
boolean.
getClass
(key)
number
number
Gets the value of a key of type
class.
getData
(key)
number
string
Gets raw byte data as a string
value.
getDouble
(key)
number
number
Gets the value of a key of type
double.
getEnumerationType
(key)
number
number
Gets the enumeration type of a
key.
getEnumerationValue
(key)
number
number
Gets the enumeration value of a
key.
getInteger
(key)
number
number
Gets the value of a key of type
integer.
getKey
(index)
number
number
Gets the ID of the Nth key,
provided by index.