Run ExtendScript (advanced)
premiere_run_extendscriptRun arbitrary ExtendScript (ES3) code in Premiere Pro and return the result as JSON. Use dryRun to preview code and confirm to execute.
Instructions
ESCAPE HATCH: run an arbitrary ExtendScript (ES3) snippet inside Premiere and return its value as JSON. EXTREMELY powerful and can do destructive things, so it requires confirm:true to execute. Use dryRun:true (default) to preview the code first. Prefer the dedicated tools when one exists.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ExtendScript (ES3) source. Its final expression value is returned. | |
| dryRun | No | If true (default), only echo the code without running it. | |
| confirm | No | Must be true to actually execute. | |
| timeoutMs | No | Call timeout (default 20000). |