Skip to main content
SuzzyFlamingo
Inspiring
Aug 5, 2025 3:43 PM UTC
Answered

Getting location of footnotes

Hi, Dear Friends!

Is it possible to get the Y position of the **beginning of the footnote area** of a selected or given text frame?

ChatGPT says it can't be done. But CANT is a four-letter word that is not in my dictionary 🙂

Thank you, and have a good day!
Susan Flamingo

rob day
rob dayCorrect answer
Community Expert
Aug 6, 2025 11:35 AM UTC

Are you pasting the code into a plain text editor and saving with .jsx extension?

 

It just shows how you can get the position of any character in a foot note—it assumes there is at least one footnote with text in the front document.

7 replies

rob day
Community Expert
Community Expert
Aug 5, 2025 5:05 PM UTC

Hi @SuzzyFlamingo , You can get the ascent line of the footnote’s first character like this:

 

var fn = app.documents[0].stories[0].footnotes[0].characters[0];
var fny = fn.baseline - fn.ascent;
alert("Ascent line: " + fny)

 

Translate
SuzzyFlamingo
Inspiring
Aug 6, 2025 6:55 AM UTC

This looks like an amazing solution. But i cannot get it to run. I think i am missing the function () part of the syntax. or something. Could i trouble you to post the complete working script?

Thank you so much

SF

Translate
rob day
Community Expert
rob dayCommunity ExpertCorrect answer
Community Expert
Aug 6, 2025 11:35 AM UTC

Are you pasting the code into a plain text editor and saving with .jsx extension?

 

It just shows how you can get the position of any character in a foot note—it assumes there is at least one footnote with text in the front document.

Translate
Mike Witherell
Community Expert
Community Expert
Aug 5, 2025 3:50 PM UTC

Suzzy,

You can use the Type tool to double-click the word "can't" and then right-click and Add "can't" to User Dictionary.

Translate
Mike Witherell
SuzzyFlamingo
Inspiring
Aug 5, 2025 3:58 PM UTC

Wow! Never thought about that....

I will continue to hope for a solution/work-around

Translate