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

Extract the paragraph tags used in the TOC

New Here ,
Jun 25, 2019 Jun 25, 2019

Copy link to clipboard

Copied

Is there a way in Extendscript to extract the paragraph tags used in the TOC? I see them in the book's MIF as DeriveTag, but I don't see a property or method that would return them.

TOPICS
Scripting

Views

203

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 , Jun 25, 2019 Jun 25, 2019

I think this may be what you are looking for. Select the TOC in the book window and try this code:

#target framemaker

var book, bookComp;

book = app.ActiveBook;

bookComp = book.FirstSelectedComponentInBook;

alert (bookComp.ExtractTags);

Votes

Translate

Translate
Community Expert ,
Jun 25, 2019 Jun 25, 2019

Copy link to clipboard

Copied

I think this may be what you are looking for. Select the TOC in the book window and try this code:

#target framemaker

var book, bookComp;

book = app.ActiveBook;

bookComp = book.FirstSelectedComponentInBook;

alert (bookComp.ExtractTags);

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
New Here ,
Jun 26, 2019 Jun 26, 2019

Copy link to clipboard

Copied

LATEST

Thanks again, Rick! I searched "Adobe FrameMaker Scripting Guide" and the Internet for a solution, but found nothing, which prompted my post. Do you have some suggestions for good search words?

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