2 Replies Latest reply on Aug 11, 2014 10:50 PM by Murali_Vetha

    Find Superscript and Small Caps

    Murali_Vetha Level 1

      Hi

       

      How to find superscript and small caps in indesign through the javascript.

       

      Regards,

      Vetha

        • 1. Re: Find Superscript and Small Caps
          Chinnadk Level 4

          Hi Vetha,

           

          Try this for find superscript,

           

          var doc = app.activeDocument;
          app.findTextPreferences = null;
          app.findTextPreferences.position = Position.SUPERSCRIPT;
          var found = doc.findText();
          app.findTextPreferences = null;
          for(var i =0;i<found.length;i++)
          {
                  alert(found[i].contents)
              }
          

           

          for small caps

           

          var doc = app.activeDocument;
          app.findTextPreferences = null;
          app.findTextPreferences.capitalization = Capitalization.SMALL_CAPS;
          var found = doc.findText();
          app.findTextPreferences = null;
          for(var i =0;i<found.length;i++)
          {
                  alert(found[i].contents)
              }
          

           

          Regards,

          Chinna

          • 2. Re: Find Superscript and Small Caps
            Murali_Vetha Level 1

            Thank you chinnadk