Copy link to clipboard
Copied
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
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.
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Wow! Never thought about that....
I will continue to hope for a solution/work-around
Copy link to clipboard
Copied
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)
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
All of the suddon it is working. thank you
Copy link to clipboard
Copied
[Deleted reply. Look before you leap]
Find more inspiration, events, and resources on the new Adobe Community
Explore Now