Copy link to clipboard
Copied
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?
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
Copy link to clipboard
Copied
The AFrame object has a TextLoc property which leads to the paragraph in which the anchor is located. Does that answer your question?
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
Thanks!
Copy link to clipboard
Copied
Please mark my answer as Correct. Thanks.