Assignment
An assignment.
Go to Property Listing | Method Listing
Methods:
addEventListener, cancelPackage, createPackage, extractLabel, getElements, insertLabel, remove, removeEventListener, toSource, toSpecifier, update
Objects:
AssignedStories, AssignmentExportOptions, AssignmentStatus, Boolean, EventListeners, Events, File, NothingEnum, Number, Object, String, UIColors,
Preferences:
Property Listing
Property |
Type |
Access |
Description |
---|---|---|---|
readonly |
A collection of assigned stories. |
||
readonly |
The status of the assignment file. |
||
readonly |
The path to the document that the hyperlink destination points to. |
||
readonly |
A collection of event listeners. |
||
readonly |
A collection of events. |
||
read/write |
The content to export in the assignment. |
||
readonly |
The file path (colon delimited on the Mac OS). Can also accept: File. |
||
Array of 3 Reals (0 - 255) |
read/write |
The color of the assignment's frames. Can return: Array of 3 Reals (0 - 255) or UIColors enumerator or NothingEnum enumerator. |
|
readonly |
The unique ID of the Assignment. |
||
read/write |
If true, includes linked files when packaging the assignment. |
||
readonly |
The index of the Assignment within its containing object. |
||
readonly |
Returns true if the object specifier resolves to valid objects. |
||
read/write |
A property that can be set to any string. |
||
read/write |
The name of the Assignment. |
||
readonly |
If true, the assignment package is up to date. |
||
readonly |
If true, the assignment is packaged. |
||
readonly |
The parent of the Assignment (a Document). |
||
read/write |
A property that allows setting of several properties at the same time. |
||
read/write |
The user name to assign to tracked changes and notes. |
Method Listing
EventListener addEventListener (eventType:String, handler:Varies File JavaScriptFunction, [captures:Boolean=Boolean])
Adds an event listener.
Parameter |
Type |
Description |
---|---|---|
eventType |
The event type. |
|
handler |
JavaScriptFunction |
The event handler. Can accept: File or JavaScript Function. |
captures |
This parameter is obsolete. (Optional) (default: false) |
undefined cancelPackage ()
Cancels the package for an assignment.
File createPackage (filePath:File, [submit:Boolean=Boolean], withProperties:Object)
Creates an assignment package.
Parameter |
Type |
Description |
---|---|---|
filePath |
The full path name of the assignment package file. |
|
submit |
If true, submits assigned stories before packaging the assignment. (Optional) (default: true) |
|
withProperties |
Initial values for properties of the new Assignment (Optional) |
String extractLabel (key:String)
Gets the label value associated with the specified key.
Parameter |
Type |
Description |
---|---|---|
key |
The key. |
Assignment getElements ()
Resolves the object specifier, creating an array of object references.
undefined insertLabel (key:String, value:String)
Sets the label to the value associated with the specified key.
undefined remove ()
Deletes the assignment and its file.
Boolean removeEventListener (eventType:String, handler:Varies File JavaScriptFunction, [captures:Boolean=Boolean])
Removes the event listener.
Parameter |
Type |
Description |
---|---|---|
eventType |
The registered event type. |
|
handler |
JavaScriptFunction |
The registered event handler. Can accept: File or JavaScript Function. |
captures |
This parameter is obsolete. (Optional) (default: false) |
String toSource ()
Generates a string which, if executed, will return the Assignment.
String toSpecifier ()
Retrieves the object specifier.
undefined update (versionComments:String, [forceSave:Boolean=Boolean])
Updates the assignment file.
Object of
AssignedStory.parent
Event.parent
EventListener.parent
MutationEvent.parent