1 Reply Latest reply on May 8, 2008 5:00 AM by (Dave_Saunders)

    InDesign CS: suppress warning dialogs when opening file

    Level 1
      Hello,

      is there a way to suppress the warning dialogs that inform you about missing fonts or linked images? If I have to modify a large amount of files with a script it would be easier if I handle those situations myself after I opened the file instead of having somebody (or myself) to sit in front of the computer while the script runs and close those messages manually.

      Best regards,

      Christian Kirchhoff
        • 1. Re: InDesign CS: suppress warning dialogs when opening file
          Level 1
          If you use these two functions to control user interaction, this part of your script will survive when you upgrade.
          function neverInteract() {
          
          if (app.version == 3) {
            app.userInteractionLevel = UserInteractionLevels.neverInteract;
          } else {
            app.scriptPreferences.userInteractionLevel = UserInteractionLevels.neverInteract;
          }
          }

          function interactWithAll() {
          if (app.version == 3) {
            app.userInteractionLevel = UserInteractionLevels.interactWithAll;
          } else {
            app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll;
          }
          }


          Dave