Skip to content

PlacedItems

app.activeDocument.placedItems

A collection of PlacedItem objects in a document.


app.activeDocument.placedItems.length

Number of elements in the collection.

Number; read-only.


app.activeDocument.placedItems.parent

The object’s container.

Object; read-only.


app.activeDocument.placedItems.typename

The class name of the object.

String; read-only.


app.activeDocument.placedItems.add()

Creates a new object.

Use to place new art in a document. Use the file property of the resulting placedItem object to link the file containing the artwork. See PlacedItem.

PlacedItem


app.activeDocument.placedItems.getByName(name)

Get the first element in the collection with the provided name.

ParameterTypeDescription
nameStringName of element to get

PlacedItem


app.activeDocument.placedItems.index(itemKey)

Gets an element from the collection.

ParameterTypeDescription
itemKeyString, NumberString or number key

PlacedItem


app.activeDocument.placedItems.removeAll()

Deletes all elements in the collection.

Nothing.