• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

Guest
Dec 10, 2013 Dec 10, 2013

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?

TOPICS
Scripting

Views

687

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Dec 10, 2013 Dec 10, 2013

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

Votes

Translate

Translate
Advocate ,
Dec 10, 2013 Dec 10, 2013

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?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 10, 2013 Dec 10, 2013

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Dec 10, 2013 Dec 10, 2013

Copy link to clipboard

Copied

Thanks!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 10, 2013 Dec 10, 2013

Copy link to clipboard

Copied

LATEST

Please mark my answer as Correct. Thanks.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines