Skip to main content
danp1470120
Participating Frequently
November 28, 2018
Question

Using ExtendScript, how to get the list of all headings including numberings, text and their locations?

  • November 28, 2018
  • 3 replies
  • 1885 views

Hi

I have a book, now I need to create a report  of all headings including numberings, text and their locations. It should look like a TOC but in an external text file.

How to achieve that?

Thanks

This topic has been closed for replies.

3 replies

danp1470120
Participating Frequently
December 1, 2018

Can anyone help? I need this urgently.

Thanks in advance.

frameexpert
Community Expert
Community Expert
December 1, 2018

I will be glad to help if you have budget for this. I can't do it for free, but if you give me clear specs on what you need, I am sure I can give you a well-commented script that will meet your requirements. Feel free to contact me offlist: rick at frameexpert dot com

danp1470120
Participating Frequently
December 2, 2018

Sorry, I don't have budget for this

Anyway, I'll try to parse all the paragraphs and get Chapter/Section/Subsection NumberText.

Thanks.

frameexpert
Community Expert
Community Expert
November 28, 2018

What do you mean by locations?

danp1470120
Participating Frequently
November 28, 2018

I mean like TextLoc property.

LinSims
Community Expert
Community Expert
November 28, 2018

You don't need an ExtendScript for that. You can just copy and paste the TOC into a text file. Or save it directly from FM to a text file. It won't looks as pretty, but it'll all be there.

danp1470120
Participating Frequently
November 28, 2018

No, I still need to do it programatically, because more calculations based on heading numbers and locations are needed.