Adobe InDesign CS2 (4.0) Object Model JS: Assignment

InDesign CS2

Class

Assignment

 An assignment.

QuickLinks

extractLabel, getElements, insertLabel, remove, toSource, toSpecifier, update

Hierarchy

Document
Assignment
AssignedStory

Properties

PropertyTypeAccessDescription
assignedStoriesAssignedStories readonlyA collection of assigned stories.
assignmentFileStatusAssignmentStatus:
AssignmentStatus.ASSIGNMENT_UP_TO_DATE
AssignmentStatus.ASSIGNMENT_OUT_OF_DATE
AssignmentStatus.ASSIGNMENT_FILE_MISSING
readonlyThe status of the assignment file.
documentPathstring readonlyThe file path to the document that contains the page that the hyperlink jumps to. Note: Valid only when hyperlink destination is an external page. For information, see hyperlink desination and hyperlink external page destination.
exportOptionsAssignmentExportOptions:
AssignmentExportOptions.EMPTY_FRAMES
AssignmentExportOptions.ASSIGNED_SPREADS
AssignmentExportOptions.EVERYTHING
r/wThe content to export in the assignment.
filePathFile readonlyThe full path to the file.
frameColor3 Reals (0 - 255)
UIColors
r/wThe color of the frames in the assignment, specified either as an array of three doubles, each in the range 0 to 255 and representing R, G, and B values, or as a UI color. Can return: Array of 3 Reals (0 - 255) or UIColors enumerator.
idnumber readonlyThe unique ID of the Assignment.
indexnumber readonlyThe index of the Assignment within its containing object.
labelstring r/wA property that can be set to any string.
namestring r/wThe name of the Assignment.
parentDocument readonlyThe parent of the Assignment (a Document).
propertiesObject r/wA property that allows setting of several properties at the same time.
userNamestring r/wThe user name to assign to tracked changes and notes.

Methods

Instances

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

ParameterTypeDescription
keystringThe key.

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

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

ParameterTypeDescription
keystringThe key.
valuestringThe value.

Assignment remove ()
Deletes the assignment and its file.

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

string toSpecifier ()
Retrieves the object specifier.

void update ()
Updates the assignment file.

Element of

AssignedStory.parent

Used in:

AssignedStory AssignedStory.move ([to: LocationOptions=LocationOptions.AT_END][, reference: any])

array of Assignment Assignments.itemByRange (from: any, to: any)

Assignment Assignments.nextItem (obj: Assignment)

Assignment Assignments.previousItem (obj: Assignment)

Return

Assignment Assignment.remove ()

Assignment Assignments.add (filePath: File[, withProperties: Object])

Assignment Assignments.anyItem ()

Array of Assignment Assignments.everyItem ()

Assignment Assignments.firstItem ()

Assignment Assignments.item (index: any)

Assignment Assignments.itemByID (id: number)

Assignment Assignments.itemByName (name: string)

Array of Assignment Assignments.itemByRange (from: any, to: any)

Assignment Assignments.lastItem ()

Assignment Assignments.middleItem ()

Assignment Assignments.nextItem (obj: Assignment)

Assignment Assignments.previousItem (obj: Assignment)

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