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

User Interaction Level during Data Merge

New Here ,
Jan 09, 2019 Jan 09, 2019

Copy link to clipboard

Copied

Hey all.

I have an AppleScript that is automating a data merge. It's merging a single record, exporting, then emailing the exported PDF. The script works just fine.

The problem is that every so often, the merged document gives Missing Fonts window, despite the user interaction level being set to never interact.

This results in 'Cannot handle the request because a modal dialog or alert is active' and breaks my script.

tell application "Adobe InDesign CC 2019"

     activate

     set user interaction level of script preferences to never interact

     set myDoc to open docPath

     set dataMerge to data merge 1 of myDocument

     select data source of myDoc data source file csvPath

     update data source

     tell data merge properties of myDoc

          tell data merge preferences

               set record number to targetRecord

          end tell

     end tell

     merge records -- < Missing < Fonts < Window < Pops < Up

     set mergedDoc to the front document

     tell mergedDoc

          export format PDF type to pdfPath using pdfExport without showing options

          close saving no

     end tell

end tell

Does anyone know why the Missing Font window would show despite setting the user interaction level to never interact? Is this a bug?

Edit:
Eliminating the Document fonts folder avoids the missing fonts window. It seems when you perform a merge, because the merged document is not saved, it no longer references the Document fonts folder, and looks to system fonts. If you have conflicting fonts (like the font in the folder is TTF, but you have OTF installed), the Missing Fonts window will appear. Just have the source document using fonts installed on the system instead of fonts in the folder, and the merge will have no missing fonts.

I still think it's a bug though, never interact should mean NEVER interact.

TOPICS
Scripting

Views

573

Translate

Translate

Report

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
no replies

Have something to add?

Join the conversation