Highlighted

Extract the paragraph tags used in the TOC

New Here ,
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.

Adobe Community Professional
Correct answer by frameexpert | Adobe Community Professional

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);

TOPICS
Scripting

Views

89

Likes

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

Extract the paragraph tags used in the TOC

New Here ,
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.

Adobe Community Professional
Correct answer by frameexpert | Adobe Community Professional

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);

TOPICS
Scripting

Views

90

Likes

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
Jun 25, 2019 0
Adobe Community Professional ,
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);

Likes

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
Reply
Loading...
Jun 25, 2019 0
New Here ,
Jun 26, 2019

Copy link to clipboard

Copied

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?

Likes

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
Reply
Loading...
Jun 26, 2019 0