2 Replies Latest reply on Jun 14, 2013 12:24 PM by Wander5

    Alert textDefault Font

    Wander5 Level 1

      Hi Forum,

       

      I have a query, I do want to give alert only if.... textDefault.appliedFont is not "Times New Roman"

       

            if (app.activeDocument.textDefaults.appliedFont != "Times New Roman"){

      alert ("ERROR  - Activate Font: TIMES NEW ROMAN ")}

       

      if the text Default "character panel" has "TIMES NEW ROMAN" setted as default. the alert shouldn't occur.

       

      now the script alert for both: when Times new Roman activated and also when deactivated.

       

      Any help please..

       

      Dhinak..