1 Reply Latest reply on Jun 10, 2008 3:01 AM by (Dave_Saunders)

    parent paragrph of my textframe(IDCS2 VB Script)

      Hi all

      Can anybody have any idea/suggetion for the following doubts:

      1. How to catch the parent paragraph of a textframe(i.e. anchored object)?

      2. How to check a frame placed on paste board?

      Thanks in advance

      priyan
        • 1. Re: parent paragrph of my textframe(IDCS2 VB Script)
          Level 1
          If the parent of a text frame is a character, then it is an anchored text frame. Thus, the "parent paragraph", as you put it is:

          myTextFrame.parent.paragraphs[0];

          If the frame is on the pasteboard as a free-standing page item, then its parent is the spread rather than a page. If it is on there because of anchoring, then you have to work harder because the parental chain will give you the page that holds the text frame that holds the character to which the frame is anchored. You'll need to use geometric bounds in that case.

          Dave