export_executeScript
Run custom ExtendScript inside InDesign to automate document tasks, target a specific open document by name or index, and control actions not covered by built-in tools.
Instructions
Execute arbitrary ExtendScript code in InDesign
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| document_id | No | Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document. |