Adobe InDesign CS2 (4.0) Object Model JS: Library

InDesign CS2

Class

Library

 An object library.

QuickLinks

close, getElements, store, toSource, toSpecifier

Hierarchy

Application
Library
Asset

Properties

PropertyTypeAccessDescription
assetsAssets readonlyA collection of object library assets.
filePathFile readonlyThe full path to the file.
fullNameFile readonlyThe full path to the Library, including the name of the Library.
indexnumber readonlyThe index of the Library within its containing object.
namestring readonlyThe name of the Library.
parentApplication readonlyThe parent of the Library (a Application).
propertiesObject r/wA property that allows setting of several properties at the same time.

Methods

Instances

void close ()
Closes the Library.

Array of Object getElements ()
Resolves the object specifier, creating an array of object references.

Asset store (using: Array of any)
Store page item(s) in a library

ParameterTypeDescription
using Array of :
Array of PageItems
EPSs
Images
Movies
PDFs
PICTs
Sounds
WMFs
XMLElements
The page item(s) to store. Can accept: Array of PageItems, Movies, Sounds, Images, EPSs, WMFs, PICTs, PDFs or XMLElements.

string toSource ()
Generates a string which, if executed, will return the Library.

string toSpecifier ()
Retrieves the object specifier.

Element of

Asset.parent

Used in:

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)

array of Library Libraries.itemByRange (from: any, to: any)

Library Libraries.nextItem (obj: Library)

Library Libraries.previousItem (obj: Library)

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)

Asset XMLElement.store (using: Library)

Return

Library Libraries.add (fullName: File[, withProperties: Object])

Library Libraries.anyItem ()

Array of Library Libraries.everyItem ()

Library Libraries.firstItem ()

Library Libraries.item (index: any)

Library Libraries.itemByName (name: string)

Array of Library Libraries.itemByRange (from: any, to: any)

Library Libraries.lastItem ()

Library Libraries.middleItem ()

Library Libraries.nextItem (obj: Library)

Library Libraries.previousItem (obj: Library)

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