Specifications

Table Of Contents
Adobe Photoshop CS6
JavaScript Scripting Reference JavaScript Object Reference 84
CountItems
The collection of CountItem objects in the document.
Access through the Document
.countItems collection property. For example:
app.activeDocument.countItems.removeAll()
Note: This feature is available in the Extended Version only.
Properties
Methods
Property Value type What it is
length
number
Read-only. The number of elements in the CountItems
collection.
parent
Document
Read-only. The containing document.
typename
string
Read-only. The class name of the referenced CountItems
object.
Method Parameter type Returns What it does
add
(position)
array of UnitValue
CountItem
Creates a new count item object and
adds it to this collection.
Parameter
position (x,y) represents
the horizontal and vertical positions,
respectively, of the
CountItem object.
getByName
(name)
string
CountItem
Get the first element in the
CountItems collection with the
provided name.
removeAll
()
Removes all CountItem objects from
the
CountItems collection.