Skip to main content
Participating Frequently
August 3, 2023
Question

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

  • August 3, 2023
  • 1 reply
  • 185 views

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

This topic has been closed for replies.

1 reply

Community Expert
August 3, 2023

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

-Manan