run_jsx
Execute custom ExtendScript code in InDesign to automate tasks not covered by other tools.
Instructions
Runs arbitrary ExtendScript code in InDesign. Use for custom automation not covered by other tools.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ExtendScript (JavaScript) code to run in InDesign. Warning: run trusted code only. | |
| waitForResult | No | When true, waits for the result (until timeout). When false, returns immediately. |