Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
7

Can I group reverting (undo) to a whole script?

Participant ,
Aug 11, 2023 Aug 11, 2023

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?

TOPICS
How to , Scripting
225
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Aug 11, 2023 Aug 11, 2023

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

Translate
Community Expert ,
Aug 11, 2023 Aug 11, 2023

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 11, 2023 Aug 11, 2023
LATEST

Hi @Lordrhavin, see an example of using doScript as @Manan Joshi suggested. - Mark

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines