Skip to main content
jamesm19708035
Participant
Jun 25, 2019 11:57 PM UTC
Answered

Extract the paragraph tags used in the TOC

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.

This topic is closed to new replies. Start a new post to keep the conversation going.
frameexpert
frameexpertCorrect answer
Community Expert
Jun 26, 2019 2:17 AM UTC

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

www.frameexpert.com

2 replies

frameexpert
Community Expert
frameexpertCommunity ExpertCorrect answer
Community Expert
Jun 26, 2019 2:17 AM UTC

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

Translate
www.frameexpert.com
jamesm19708035
Participant
Jun 26, 2019 4:18 PM UTC

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?

Translate