Run raw ExtendScript in Illustrator
illustrator_run_scriptRun custom ExtendScript in Adobe Illustrator to automate actions not covered by standard tools. Returns the script's last expression as a string for direct results.
Instructions
Executes arbitrary ExtendScript (Illustrator's JS-based scripting language, roughly ES3) inside the running Illustrator instance. Use this for anything the other tools don't cover directly. The value of the last expression in the script is returned as a string (end your script with a bare expression, e.g. a string, to return a result). Illustrator object model docs: app, app.documents, app.activeDocument, PathItem, TextFrame, RGBColor, etc.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | ExtendScript source code to run inside Illustrator. |