BackgroundTask
background task
Go to Property Listing | Method Listing
Methods:
addEventListener, cancelTask, getElements, queryProperty, removeEventListener, toSource, toSpecifier, waitForTask
Objects:
Boolean, EventListeners, Events, Number, Object, String, TaskState,
Property Listing
Property |
Type |
Access |
Description |
---|---|---|---|
Array of 2 TaskAlertType enumerators |
readonly |
The alerts encountered while running this task object. Can return: Array of Array of 2 TaskAlertType enumerators or Strings. |
|
readonly |
The document name on which this task operates. |
||
readonly |
A collection of event listeners. |
||
readonly |
A collection of events. |
||
readonly |
The unique ID of the BackgroundTask. |
||
readonly |
The index of the BackgroundTask within its containing object. |
||
readonly |
Returns true if the object specifier resolves to valid objects. |
||
readonly |
The name of the BackgroundTask. |
||
readonly |
The parent of the BackgroundTask (a Application). |
||
readonly |
Progress information for this task. |
||
read/write |
A property that allows setting of several properties at the same time. |
||
readonly |
The current status of this task object. |
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 cancelTask ()
Cancels the specified background task.
BackgroundTask getElements ()
Resolves the object specifier, creating an array of object references.
Varies queryProperty (name:String)
Queries for a particular property in the task metadata.
Parameter |
Type |
Description |
---|---|---|
name |
The task property being queried |
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 BackgroundTask.
String toSpecifier ()
Retrieves the object specifier.
TaskState waitForTask ()
Waits for the task to finish.
Object of
Event.parent
EventListener.parent
MutationEvent.parent
Return
BackgroundTasks.previousItem()
Document.asynchronousExportFile()
FormField.asynchronousExportFile()
Button.asynchronousExportFile()
MultiStateObject.asynchronousExportFile()
CheckBox.asynchronousExportFile()
ComboBox.asynchronousExportFile()
ListBox.asynchronousExportFile()
RadioButton.asynchronousExportFile()
TextBox.asynchronousExportFile()
SignatureField.asynchronousExportFile()
Movie.asynchronousExportFile()
Sound.asynchronousExportFile()
PageItem.asynchronousExportFile()
Rectangle.asynchronousExportFile()
GraphicLine.asynchronousExportFile()
Polygon.asynchronousExportFile()
Group.asynchronousExportFile()
Image.asynchronousExportFile()
Graphic.asynchronousExportFile()
SplineItem.asynchronousExportFile()
EPSText.asynchronousExportFile()
ImportedPage.asynchronousExportFile()
MediaItem.asynchronousExportFile()
HtmlItem.asynchronousExportFile()
Character.asynchronousExportFile()
TextColumn.asynchronousExportFile()
Paragraph.asynchronousExportFile()
TextStyleRange.asynchronousExportFile()
InsertionPoint.asynchronousExportFile()
TextFrame.asynchronousExportFile()
Story.asynchronousExportFile()
EndnoteTextFrame.asynchronousExportFile()