Skip to main content
SuzzyFlamingo
Inspiring
August 5, 2025
Answered

Getting location of footnotes

  • August 5, 2025
  • 2 replies
  • 370 views

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

Correct answer rob day

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.

2 replies

rob day
Community Expert
Community Expert
August 5, 2025

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)

 

SuzzyFlamingo
Inspiring
August 6, 2025

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

rob day
Community Expert
rob dayCommunity ExpertCorrect answer
Community Expert
August 6, 2025

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.

Mike Witherell
Community Expert
Community Expert
August 5, 2025

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.

Mike Witherell
SuzzyFlamingo
Inspiring
August 5, 2025

Wow! Never thought about that....

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