Getting superscript and subscript in Adobe Indesign CS3

n 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.