Adobe InDesign CS (3.0) Object Model JS: Asset

InDesign CS

Class

Asset

 An object library asset.

QuickLinks

extractLabel, insertLabel, placeAsset, remove

Hierarchy

Library
Asset

Properties

PropertyTypeAccessDescription
assetTypeAssetType:
AssetType.IMAGE_TYPE
AssetType.EPS_TYPE
AssetType.PDF_TYPE
AssetType.GEOMETRY_TYPE
AssetType.PAGE_TYPE
AssetType.TEXT_TYPE
r/wThe type of object library asset.
dateDate readonlyThe date and time the Asset was created.
descriptionstring r/wThe description of the Asset.
idnumber readonlyThe unique ID of the Asset.
indexnumber readonlyThe index of the Asset within its containing object.
labelstring r/wA property that can be set to any string.
namestring r/wThe name of the Asset.
parentLibrary readonlyThe parent of the Asset (a Library).
propertiesObject r/wA property that allows setting of several properties at the same time.

Methods

Instances

string extractLabel (key: string)
Gets the label value associated with the specified key.

ParameterTypeDescription
keystringThe key.

void insertLabel (key: string, value: string)
Sets the label to the value associated with the specified key.

ParameterTypeDescription
keystringThe key.
valuestringThe value.

Array of any placeAsset (on: Document)
Place the asset in a document

ParameterTypeDescription
onDocumentThe document in which to place the asset

void remove ()
Deletes the Asset.

Return

Asset Button.store (using: Library)

Asset EPS.store (using: Library)

Asset FormField.store (using: Library)

Asset GraphicLine.store (using: Library)

Asset Group.store (using: Library)

Asset Image.store (using: Library)

Asset Library.store (using: Array of any)

Asset Movie.store (using: Library)

Asset Oval.store (using: Library)

Asset PDF.store (using: Library)

Asset PICT.store (using: Library)

Asset PageItem.store (using: Library)

Asset Polygon.store (using: Library)

Asset Rectangle.store (using: Library)

Asset Sound.store (using: Library)

Asset TextFrame.store (using: Library)

Asset WMF.store (using: Library)

Jongware, 27-Jun-2010 v3.0.3dContents :: Index