Adobe InDesign CS5 Server (7.0) Object Model JS: OpenFileBehaviors

InDesign Server CS5

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 [] (index: number)
Returns the OpenFileBehavior with the specified index.

ParameterTypeDescription
indexnumberThe index.

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: varies)
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: varies, to: varies)
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

Jongware, 23-Mar-2011 v3.0.3dContents :: Index