1 Reply Latest reply on Jul 9, 2013 11:19 PM by Vamitul

    How to solve the Error code :45 for the below mentioned script. Please provide  the solution for the

    s_ashok Level 1

      function fontcheck (){

          fonts=null;

      //var fonts=document.fonts.everyItem().getElements();

      var _docFonts = app.activeDocument.fonts.everyItem().getElements();

          var myDoc=app.activeDocument

          var fontlist = []

          for (var i = 0; i < _docFonts.length; i++) {

           var fontName = _docFonts[i].fullName;

           var fontpath= _docFonts[i].location;

      var mm=String(fontpath);

      var s=String.fromCharCode(92)

      var ms=String("C:"+(s)+"Windows"+(s)+"Fonts"+(s));

      mm=mm.substring(0,17);

      if (mm==ms)

      {

      alert ("The Document contain System font Please fix the font using find font option");

      exit()

      mm=null;

      fonts=null;

      }   

      else

      {

      if (mm=="System Font")

      {

      alert ("The Document contain System font Please fix the font using find font option");

      exit()

      mm=null;

      fonts=null;

      }

      }}

      }