Returns the GenAIModel with the specified index.
Not available in UXP — require("indesign") does not export this object. ExtendScript only.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
| Number | readonly | The number of objects in the collection. |
Methods
Creates a new GenAIModel.Fails with “Invalid object for this request.” in InDesign 2027 (22.0) — scripts cannot add GenAI models.
Returns any GenAIModel in the collection.
Displays the number of elements in the GenAIModel.
Returns every GenAIModel in the collection.
Returns the first GenAIModel in the collection.
Returns the GenAIModel with the specified index or name.
Returns the GenAIModel with the specified ID.
Returns the GenAIModel with the specified name.
Returns the GenAIModels within the specified range.
Returns the last GenAIModel in the collection.
Returns the middle GenAIModel in the collection.
Returns the GenAIModel whose index follows the specified GenAIModel in the collection.
Returns the GenAIModel with the index previous to the specified index.
Generates a string which, if executed, will return the GenAIModel.
Object of 1
Properties elsewhere that hold a GenAIModels.