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

Scripting: How to cancel long-running DataMerge.mergeRecords()?

Community Beginner ,
Aug 02, 2023 Aug 02, 2023

I have a script that does something like this:

app.activeDocument.dataMergeProperties.mergeRecords();

How can the operation be stopped or cancelled under script control, for example if the user decides it's taking too long?

This script is running in a designated targetengine

TOPICS
Scripting
129
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 02, 2023 Aug 02, 2023
LATEST

Check out the following discussion

https://community.adobe.com/t5/indesign-discussions/press-escape-to-stop-the-script/m-p/10939058

However, I doubt you will be able to fine tune that to break an existing method call as you mentioned.

-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