Copy link to clipboard
Copied
I have a script that does some magic. However, if I undo it, it undoes every step of the script one by one. Can I somehow tell at the start of the script that this all hould b ONE change for the undo-buffer?
Call the script using app.doScript method. It will add a single entry for your script in the undo stack. See the method details at the following link
https://www.indesignjs.de/extendscriptAPI/indesign-latest/#Application.html%23d1e42253__d1e45802
-Manan
Copy link to clipboard
Copied
Call the script using app.doScript method. It will add a single entry for your script in the undo stack. See the method details at the following link
https://www.indesignjs.de/extendscriptAPI/indesign-latest/#Application.html%23d1e42253__d1e45802
-Manan
Copy link to clipboard
Copied
Hi @Lordrhavin, see an example of using doScript as @Manan Joshi suggested. - Mark
Find more inspiration, events, and resources on the new Adobe Community
Explore Now