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

Getting location of footnotes

Contributor ,
Aug 05, 2025 Aug 05, 2025

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

TOPICS
How to , Scripting , Type
279
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 2 Correct answers

Community Expert , Aug 05, 2025 Aug 05, 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.

Translate
Community Expert , Aug 06, 2025 Aug 06, 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.

Translate
Community Expert ,
Aug 05, 2025 Aug 05, 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
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
Contributor ,
Aug 05, 2025 Aug 05, 2025

Wow! Never thought about that....

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

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 05, 2025 Aug 05, 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)

 

Screen Shot 23.png

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
Contributor ,
Aug 05, 2025 Aug 05, 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

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 06, 2025 Aug 06, 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.

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
Contributor ,
Aug 06, 2025 Aug 06, 2025
LATEST

All of the suddon it is working. thank you

 

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 06, 2025 Aug 06, 2025

[Deleted reply. Look before you leap]

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