Specifications

Table Of Contents
Adobe Photoshop CS6
JavaScript Scripting Reference JavaScript Object Reference 142
PathItems
The collection of PathItem objects in a document.
Access through the Document
.pathItems collection property. For example, this creates a new path item
using a previously-defined set of subpaths:
app.activeDocument.pathItems.add("myPath", lineSubPathInfoArray);
Properties
Methods
Property Value type What it is
length
number
Read-only. The number of pathItem objects in the
pathItems collection.
parent
Document
Read-only. The pathItems object's container.
typename
string
Read-only. The class name of the referenced pathItems
object.
Method Parameter type Returns What it does
add
(name,
entirePath)
string
array of SubPathInfo
PathItem
Creates a new path item object and adds it
to this collection.
A new SubPathItem
object is created for
each
SubPathInfo object provided in
entirePath, and those SubPathItem
objects are added to the subPathItems
collection of the returned PathItem
.
getByName
(name)
string
PathItem
Get the first element in the pathItems
collection with the provided name.
removeAll
()
Removes all pathItem objects from the
pathItems collection.