Skip navigation
mdver
Currently Being Moderated

How do I take an anchored frame and return the paragraph tag it uses?

Dec 10, 2013 1:29 AM

Tags: #framemaker10 #extendscript #beginner #aframe

I need to parse through anchored frames and return the paragraph tag that it is located it. I can't seem to find a property that returns the paragraph tag. Anyone have any ideas?

 
Replies
  • Currently Being Moderated
    Dec 10, 2013 1:38 AM   in reply to mdver

    The AFrame object has a TextLoc property which leads to the paragraph in which the anchor is located. Does that answer your question?

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 10, 2013 5:07 AM   in reply to mdver

    Try this on the selected anchored frame:

     

    #target framemaker
    
    var doc = app.ActiveDoc;
    var aFrame = doc.FirstSelectedGraphicInDoc;
    var pgf = aFrame.TextLoc.obj;
    
    alert (pgf.Name);
    

     

    Rick

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 10, 2013 5:50 AM   in reply to mdver

    Please mark my answer as Correct. Thanks.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points