2 Replies Latest reply on Apr 16, 2008 8:37 AM by (Steve_Suranie)

    AS: Finding superscript and subscript in CS3

      In CS2 I was able to use this code to find the super and sub scripts...

      set styleRange to (object reference of every text style range whose position contains superscript) of story id parentStoryID

      When I run the script on a CS3 file it skips over the sub and sup scripts.

      Any help would be appreciated.
        • 1. Re: AS: Finding superscript and subscript in CS3
          sstanleyau Level 4
          On 16/4/08 3:09 AM, "Steve Suranie" <member@adobeforums.com> wrote:<br /><br />> In CS2 I was able to use this code to find the super and sub scripts...<br />> <br />> set styleRange to (object reference of every text style range whose position<br />> contains superscript) of story id parentStoryID<br /><br />That's only going to find superscripts.<br />> <br />> When I run the script on a CS3 file it skips over the sub and sup scripts.<br /><br />it works as expected here.<br /><br /><br />-- <br />Shane Stanley <sstanley@myriad-com.com.au>
          • 2. Re: AS: Finding superscript and subscript in CS3
            Level 1
            Doh, the problem was with another part of my code...

            if count of every item of styleRange > 1 then will not run if the count = 1...stupid programmer...

            thanks Shane for taking a look and making me think.