2 Replies Latest reply on Sep 17, 2008 1:32 AM by (Carlo_Chierotti)

    Getting class of text frame in CS3

      Hello.

      This snippets of code work perfectly in CS and CS2:

      [...]
      set myDocumentStories to every story of myDocument
      [...]
      repeat with myDocumentStory in myDocumentStories
      if class of parent of parent of first text frame of myDocumentStory is spread then
      [do something]
      end if

      In CS3 I get a -1728 error
      "Can't get class of parent of parent of text frame 1 of story id 249 of document (name of document)"

      Can please someone suggest me how to solve this problem? Thank you VERY much!