Adobe InDesign CS3 (5.0) Object Model JS: Library

InDesign CS3

Class

Library

 An object library.

QuickLinks

close, getElements, store, toSource, toSpecifier

Hierarchy

Application
Library
Asset

Properties

PropertyTypeAccessDescription
assetsAssets readonlyA collection of object library assets.
associatedPanelPanel readonlyThe associated panel.
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 Library getElements ()
Resolves the object specifier, creating an array of object references.

Asset store (using: Array of any[, withProperties: Object])
Stores the specified object in the library.

ParameterTypeDescription
using Array of :
Array of PageItems
Graphics
Movies
Sounds
XMLElements
The page item(s) to store. Can accept: Array of PageItems, Movies, Sounds, Graphics or XMLElements.
withPropertiesObjectInitial values for properties of the new Library (Optional)

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

string toSpecifier ()
Retrieves the object specifier.

Element of

Asset.parent

LibraryPanel.associatedLibrary

Used in:

Asset Button.store (using: Library[, withProperties: Object])

Asset EPS.store (using: Library[, withProperties: Object])

Asset FormField.store (using: Library[, withProperties: Object])

Asset GraphicLine.store (using: Library[, withProperties: Object])

Asset Group.store (using: Library[, withProperties: Object])

Asset Image.store (using: Library[, withProperties: Object])

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

Library Libraries.nextItem (obj: Library)

Library Libraries.previousItem (obj: Library)

Asset Movie.store (using: Library[, withProperties: Object])

Asset Oval.store (using: Library[, withProperties: Object])

Asset PDF.store (using: Library[, withProperties: Object])

Asset PICT.store (using: Library[, withProperties: Object])

Asset PageItem.store (using: Library[, withProperties: Object])

Asset Polygon.store (using: Library[, withProperties: Object])

Asset Rectangle.store (using: Library[, withProperties: Object])

Asset Sound.store (using: Library[, withProperties: Object])

Asset TextFrame.store (using: Library[, withProperties: Object])

Asset WMF.store (using: Library[, withProperties: Object])

Asset XMLElement.store (using: Library[, withProperties: Object])

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)

Array of Library Library.getElements ()

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