PlacedItems
PlacedItems
Section titled “PlacedItems”app.activeDocument.placedItems
Description
Section titled “Description”A collection of PlacedItem objects in a document.
Properties
Section titled “Properties”PlacedItems.length
Section titled “PlacedItems.length”app.activeDocument.placedItems.length
Description
Section titled “Description”Number of elements in the collection.
Number; read-only.
PlacedItems.parent
Section titled “PlacedItems.parent”app.activeDocument.placedItems.parent
Description
Section titled “Description”The object’s container.
Object; read-only.
PlacedItems.typename
Section titled “PlacedItems.typename”app.activeDocument.placedItems.typename
Description
Section titled “Description”The class name of the object.
String; read-only.
Methods
Section titled “Methods”PlacedItems.add()
Section titled “PlacedItems.add()”app.activeDocument.placedItems.add()
Description
Section titled “Description”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.
Returns
Section titled “Returns”PlacedItems.getByName()
Section titled “PlacedItems.getByName()”app.activeDocument.placedItems.getByName(name)
Description
Section titled “Description”Get the first element in the collection with the provided name.
Parameters
Section titled “Parameters”Parameter | Type | Description |
---|---|---|
name | String | Name of element to get |
Returns
Section titled “Returns”PlacedItems.index()
Section titled “PlacedItems.index()”app.activeDocument.placedItems.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”PlacedItems.removeAll()
Section titled “PlacedItems.removeAll()”app.activeDocument.placedItems.removeAll()
Description
Section titled “Description”Deletes all elements in the collection.
Returns
Section titled “Returns”Nothing.