1 Reply Latest reply on Mar 24, 2011 7:37 AM by Mayhem SWE

    Auto replace missing fonts durring script place

    AaronArnott Level 1

      I have a script that runs on startup that places a word document in a new indesign document. The problem is that if there are fonts in the word document that indesign can't find, then we get a message saying there are missing fonts and a series of javascript errors because there's a dialog open.

       

      Is there an option to have it automatically replace missing fonts with a specified font?

       

      InDesign CS5

      Windows

        • 1. Re: Auto replace missing fonts durring script place
          Mayhem SWE Level 2

          Form my understanding you can't replace missing fonts until the document is open. To avoid the missing fonts modal dialog, you can set

           

          app.scriptPreferences.userInteractionLevel = UserInteractionLevels.NEVER_INTERACT;
          

           

          before opening the document and then make your font substitutions. Don't forget to reset the userInteractionLevel when your script is done!