User Interaction Level resets during Data Merge
Using at the top of the InDesign tell block:
set user interaction level of script preferences to never interact
The way I understand user interaction levels, when set to 'never interact', it should suppress all dialog boxes from popping up.
When AppleScript performs 'merge records', and the merged record contains missing fonts, ONLY SOMETIMES a missing fonts dialog box pops up and breaks the script. One can close this dialog, run the script again, and the dialog doesn't appear. This unpredictability is why I'm logging it as a bug.
Looking at the JavaScript DOM, the userInteractionLevel is a setting at the Application level, not the document.
app.scriptPreferences.userInteractionLevel = UserInteractionLevels.NEVER_INTERACT;
I posted a more detailed explanation on the Adobe Forums here:
https://forums.adobe.com/thread/2581338
-
Uwe Laubender commented
Hm, when reading into the linked thread all this can happen because some used fonts of the template document for the merge are supplied with a Document fonts folder. And during the merge InDesign has no access to that Document fonts folder.
Sounds like a Catch 22 situation…
Regards,
Uwe Laubender
( ACP )