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)
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Indesign freeze without crashing when calling app.doScript() from a UXP plugin | 1 | 369 | October 14, 2023 | |
| Operating system specific problems with InDesign APIs? | 6 | 819 | August 21, 2023 | |
| InDesign 20.2 passing parameters from javascript to applescript | 1 | 83 | March 25, 2025 | |
| Is it possible to make UndoModes.ENTIRE_SCRIPT when executing UXPScript in doScript? | 4 | 200 | February 9, 2025 | |
| Problem with Undo and File | 3 | 230 | November 6, 2025 |