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

How Do I Count Footnotes?

New Here ,
Aug 12, 2024 Aug 12, 2024

Hello,

I'm working on a book, and I need to find out how many footnotes I have. I hate to go through and count them all manually. Is there a place I can go to see how many footnotes the document has?

TOPICS
How to
809
Translate
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 , Aug 12, 2024 Aug 12, 2024

There isn't, but this one-liner tells you how many footnotes your document has:

 

alert ('Footnotes: ' + app.activeDocument.stories.everyItem().footnotes.length);
Translate
Community Expert ,
Aug 12, 2024 Aug 12, 2024

There isn't, but this one-liner tells you how many footnotes your document has:

 

alert ('Footnotes: ' + app.activeDocument.stories.everyItem().footnotes.length);
Translate
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 ,
May 19, 2025 May 19, 2025

How to use this script? I am beginner.

Rasto

Translate
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
LEGEND ,
May 19, 2025 May 19, 2025
quote

How to use this script? I am beginner.

Rasto


By @Furko1951

 

https://creativepro.com/how-to-install-scripts-in-indesign/

 

Translate
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 ,
May 30, 2025 May 30, 2025

Is this JavaScript or VBSScript (what extension of file?)

Translate
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 ,
May 30, 2025 May 30, 2025
LATEST

JavaScript. Use the extension .jsx

Translate
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 ,
Aug 12, 2024 Aug 12, 2024

A quick script is always a good solution, but one I've used on-the-fly (for a book in which I need to know how many short encyclopedia-like entries there are, for example) is to do a search and replace for the paragraph character on a key style. My example has one "date" paragraph in each entry, so if I F/R for the return using that style, it gives me an exact count.

 

If you've (properly) used a defined Footnote style, the same hacky-trick should give you an accurate count.

 

Or, you know, you could use a script, too. 🙂

Translate
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 ,
Aug 12, 2024 Aug 12, 2024

True, find/replace can often be used to count things. But single-paragraph footnotes don't have the paragraph character, so you'd have to go for another character. Which is pretty scary.

Translate
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 ,
Aug 12, 2024 Aug 12, 2024

Okay, then. It works really well for most item counts. 😛

Translate
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