Adobe InDesign CS3 (5.0) Object Model JS: Assignment

InDesign CS3

Class

Assignment

 An assignment.

QuickLinks

cancelPackage, createPackage, 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.
documentPathFile readonlyThe path to the document that the hyperlink destination points to.
exportOptionsAssignmentExportOptions:
AssignmentExportOptions.EMPTY_FRAMES
AssignmentExportOptions.ASSIGNED_SPREADS
AssignmentExportOptions.EVERYTHING
r/wThe content to export in the assignment.
filePathstring readonlyThe file path (colon delimited on the Mac OS). Can also accept: File.
frameColor3 Reals (0 - 255)
NothingEnum
UIColors
r/wThe color of the assignment's frames. Can return: Array of 3 Reals (0 - 255) or UIColors enumerator or NothingEnum enumerator.
idnumber readonlyThe unique ID of the Assignment.
includeLinksWhenPackagebool r/wIf true, includes linked files when packaging 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.
packageUpToDatebool readonlyIf true, the assignment package is up to date.
packagedbool readonlyIf true, the assignment is packaged.
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

void cancelPackage ()
Cancels the package for an assignment.

File createPackage (filePath: File[, submit: bool=true][, withProperties: Object])
Creates an assignment package.

ParameterTypeDescription
filePathFileThe full path name of the assignment package file.
submitboolIf true, submits assigned stories before packaging the assignment. (Optional) (default: true)
withPropertiesObjectInitial values for properties of the new Assignment (Optional)

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

ParameterTypeDescription
keystringThe key.

Array of Assignment 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 ([versionComments: string][, forceSave: bool=false])
Updates the assignment file.

ParameterTypeDescription
versionCommentsstringThe comment for this version. (Optional)
forceSaveboolIf true, forcibly saves a version. (Optional) (default: false)

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

Array of Assignment Assignment.getElements ()

Assignment Assignment.remove ()

Assignment Assignments.add (filePath: File[, versionComments: string][, forceSave: bool=false][, 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