Seems that app.doScript struggles with asynchronous operations. I have an issue with that too, when using the file system (see my Problem with Undo and File)
hauke354
3
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Indesign freeze without crashing when calling app.doScript() from a UXP plugin | 1 | 385 | October 14, 2023 | |
| app.doScript becomes undefined after plugin reload in UXP Dev Tools | 0 | 53 | May 6, 2026 | |
| Operating system specific problems with InDesign APIs? | 6 | 846 | August 21, 2023 | |
| InDesign 20.2 passing parameters from javascript to applescript | 1 | 96 | March 25, 2025 | |
| Is it possible to make UndoModes.ENTIRE_SCRIPT when executing UXPScript in doScript? | 4 | 226 | February 9, 2025 |