Adobe InDesign CS2 (4.0) Object Model JS: Assignments

InDesign CS2

Class

Assignments

 A collection of assignments.

QuickLinks

add, anyItem, count, everyItem, firstItem, item, itemByID, itemByName, itemByRange, lastItem, middleItem, nextItem, previousItem, toSource

Properties

PropertyTypeAccessDescription
lengthnumber readonlyThe number of objects in the collection.

Methods

Instances

Assignment add (filePath: File[, withProperties: Object])
Creates a new assignment.

ParameterTypeDescription
filePathFileThe full path name of the new assignment.
withPropertiesObjectInitial values for properties of the new Assignment (Optional)

Assignment anyItem ()
Returns any Assignment in the collection.

number count ()
Displays the number of elements in the Assignment.

Array of Assignment everyItem ()
Returns every Assignment in the collection.

Assignment firstItem ()
Returns the first Assignment in the collection.

Assignment item (index: any)
Returns the Assignment with the specified index or name.

ParameterTypeDescription
indexLong
String
The index or name. Can accept: Long or String.

Assignment itemByID (id: number)
Returns the Assignment with the specified ID.

ParameterTypeDescription
idnumberThe ID.

Assignment itemByName (name: string)
Returns the Assignment with the specified name.

ParameterTypeDescription
namestringThe name.

Array of Assignment itemByRange (from: any, to: any)
Returns the Assignments within the specified range.

ParameterTypeDescription
fromAssignment
Long
String
The Assignment, index, or name at the beginning of the range. Can accept: Assignment, Long or String.
toAssignment
Long
String
The Assignment, index, or name at the end of the range. Can accept: Assignment, Long or String.

Assignment lastItem ()
Returns the last Assignment in the collection.

Assignment middleItem ()
Returns the middle Assignment in the collection.

Assignment nextItem (obj: Assignment)
Returns the Assignment whose index follows the specified Assignment in the collection.

ParameterTypeDescription
objAssignmentThe Assignment whose index comes before the desired Assignment.

Assignment previousItem (obj: Assignment)
Returns the Assignment with the index previous to the specified index.

ParameterTypeDescription
objAssignmentThe index of the Assignment that follows the desired Assignment.

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

Element of

Document.assignments

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