2 Replies Latest reply on Jul 26, 2013 2:54 AM by Wander5

    Find default bullet character

    Wander5 Level 1

      Hi everybody!!!

       

      I got this script from forum..

       

      With the help of this, to check if the bullets are in Zapf Dingbats it does right.

       

      if the bullets are in Default font, (•), it does not check and alert, the fontValue or unicode value..just skips....

       

      (the script finds the Newly added bullets, but not the default bullet font, when  bullets and numbering font applied to the paragraphs).

       

      try {

      myDoc = app.activeDocument;

      app.findTextPreferences = null;

      app.findTextPreferences.bulletsAndNumberingListType = ListType.BULLET_LIST;

      mFound = myDoc.findText();

      if(mFound.bulletChar.bulletsFont.fullName !=="Zapf Dingbats"){

                      

                     alert ("Not Zapf Dingbats")

                     }

                } } catch (e) {}

       

      Would be great if i get help on this...