lohriialo / indesign-scripting-python

Scripting in InDesign is used to automate a wide variety of repetative task or as complex as an entire new feature
145 stars 26 forks source link

Any way to avoid missing references when opening InDesign Document #10

Open alexberd opened 3 years ago

alexberd commented 3 years ago

Is there any way to avoid the missing references error message when opening a InDesign Document? https://github.com/lohriialo/indesign-scripting-python/blob/master/OpenDocument.py image

mlove4u commented 3 years ago

With javascript, is: app.scriptPreferences.userInteractionLevel = UserInteractionLevels.NEVER_INTERACT; see: http://jongware.mit.edu/idcs6js/pc_ScriptPreference.html So it maybe: app.ScriptPreferences.UserInteractionLevel = 1699640946 # UserInteractionLevels.NEVER_INTERACT