InDesign Server2025
API 20.5.0.49
Collection of Asset

Assets

A collection of object library assets.

Properties

NameType AccessDescription
Number readonly The number of objects in the collection.

Methods

Asset

Returns the Asset with the specified index.

index Number The index.
Asset

Returns any Asset in the collection.

Number

Displays the number of elements in the Asset.

Asset[]

Returns every Asset in the collection.

Asset

Returns the first Asset in the collection.

Asset

Returns the Asset with the specified index or name.

index LongInteger | String The index or name. Can accept: Long Integer or String.
Asset

Returns the Asset with the specified ID.

id Number The ID.
Asset

Returns the Asset with the specified name.

name String The name.
Asset[]

Returns the Assets within the specified range.

from Asset | LongInteger | String The Asset, index, or name at the beginning of the range. Can accept: Asset, Long Integer or String.
to Asset | LongInteger | String The Asset, index, or name at the end of the range. Can accept: Asset, Long Integer or String.
Asset

Returns the last Asset in the collection.

Asset

Returns the middle Asset in the collection.

Asset

Returns the Asset whose index follows the specified Asset in the collection.

obj Asset The Asset whose index comes before the desired Asset.
Asset

Returns the Asset with the index previous to the specified index.

obj Asset The index of the Asset that follows the desired Asset.
String

Generates a string which, if executed, will return the Asset.

Object of 1

Properties elsewhere that hold a Assets.