set documentPath to "iMac Mavericks:Users:adminosx:Desktop:test.indd"
tell application "Adobe InDesign CC 2014"
set user interaction level of script preferences to never interact
open file documentPath
end tell
This was the best I could make work But I had no way to test for dialog boxes. So it only worked for the initial message.
Later messages still stopped me.
tell me to CloseDialogBox()
on CloseDialogBox()
tell application “Adobe InDesign CC 2014”
activate
delay 2
–if (name of window 1 is “dialog1”) then
try
tell application “System Events” to key code 76
the script works for each file you can open. Dialogs is suppressed.
If you need to know if a layout contains missing font you need to get all fonts used by document and see if they are missing.
I use in in production and works.