1 Reply Latest reply on Nov 4, 2009 3:07 PM by AdobeScripts

    Deselect text from selection text

    Techi Panda Level 2

      Hi scripters

       

      I am finding equation paragraph in my document, here is my code,

       

      app.findTextPreferences = app.changeTextPreferences = null;
      app.findTextPreferences.appliedParagraphStyle = "Eq-1i";
      var myResults = app.activeDocument.findText();

      for (i = myResults.length-1; i >= 0; i--)
        {
         myResults[i].select();
        }

       

      It works fine and below is the result

       

      image1.JPG

       

      Now what I need to do is I want to deselet the equation in the selection and have to set baseline shift for selected text, something like this

       

      image2.JPG

       

      how I can deselect the equation in script

       

      Thanks in advance

       

      regards

      a r u l