3 Replies Latest reply on Feb 28, 2012 8:22 AM by Learner X

    Doubt in Applying Character Styles

    Learner X Level 1

      Hi all,

       

      I am new to Javascript. Last two days only i am learning javascript.

       

       

      Actually using GREP options in my doucument  i want to change all my "Italic"  character style into "[None]" it not worked out.

       

      But if i use "Bold" character style or any other character style for that [None] its worked out.

       

       

      Shows my 1st javascript for yours in below. The 4th line is the problem.

       

      app.findGrepPreferences.findWhat = NothingEnum.nothing;

      app.changeGrepPreferences.changeTo = NothingEnum.nothing;

      app.findGrepPreferences.appliedCharacterStyle = "Italic"

      app.changeGrepPreferences.appliedCharacterStyle = "[None]"

      app.documents.item(0).changeGrep();

       

      Awating for your reply. Thanks in advance.

       

      Can anyone give some tips or websites for me to learn javascript?