Skip to main content
Inspiring
February 23, 2016
Question

indesign undoModes - NONE?

  • February 23, 2016
  • 2 replies
  • 568 views

The undoModes in InDesign are AUTO_UNDO, ENTIRE_SCRIPT, .FAST_ENTIRE_SCRIPT, SCRIPT_REQUEST.

Is there a way to totally disable undo for a particular script action?

I would not want the actions performed by the script to be undo by pressing Ctrl+Z or "undo" under the Edit menu.

Please advise.

cheers

This topic has been closed for replies.

2 replies

Vamitul
Legend
February 23, 2016

AUTO_UNDO would be the closest thing to what you are looking for. It will "merge" all the stuff the script has done with the previous undo action.
Another way would be to clear the undo stack by doing a "save as" (doc.save(doc.fullName))

Peter Spier
Community Expert
Community Expert
February 23, 2016

I moved your question to the scripting forum, but I have to say that I would not want to use a script that cannot be undone.

Inspiring
February 26, 2016

I definitely would like scripts to be able to be undo-ed and re-doed.

i discovered that somehow if script contains insertLabel(), it will not be a clean undo of the entire script prior to that in a single ctrl+Z action, i also got "Set scripting tag" in the undo listing..

Thanks for the response.

Vamitul
Legend
February 29, 2016

in the case on insertLablel, AUTO_UNDO is perfect