Adobe InDesign CS3 (5.0) Object Model JS: OpenFileBehaviors

InDesign CS3

Class

OpenFileBehaviors

 A collection of open file behavior objects.

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

OpenFileBehavior add ([withProperties: Object])
Creates a new OpenFileBehavior.

ParameterTypeDescription
withPropertiesObjectInitial values for properties of the new OpenFileBehavior (Optional)

OpenFileBehavior anyItem ()
Returns any OpenFileBehavior in the collection.

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

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

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

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

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

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

ParameterTypeDescription
idnumberThe ID.

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

ParameterTypeDescription
namestringThe name.

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

ParameterTypeDescription
fromLong Integer
OpenFileBehavior
String
The OpenFileBehavior, index, or name at the beginning of the range. Can accept: OpenFileBehavior, Long Integer or String.
toLong Integer
OpenFileBehavior
String
The OpenFileBehavior, index, or name at the end of the range. Can accept: OpenFileBehavior, Long Integer or String.

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

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

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

ParameterTypeDescription
objOpenFileBehaviorThe OpenFileBehavior whose index comes before the desired OpenFileBehavior.

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

ParameterTypeDescription
objOpenFileBehaviorThe index of the OpenFileBehavior that follows the desired OpenFileBehavior.

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

Element of

Button.openFileBehaviors

FormField.openFileBehaviors

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