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

Convert footnotes to endnotes in script

Explorer ,
Oct 28, 2021 Oct 28, 2021

Is there a direct way to convert footnotes to endnotes in a script? (I'm familiar with PK's script -- I'm looking for a wat to do it without having to call his script)

 

Thanks

TOPICS
Scripting
505
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 ,
Oct 28, 2021 Oct 28, 2021

Is this a trick question 🙂 Jokes apart why don't you want to use Peter's script, do you see any errors, shortcoming etc. Please point to the thing that is bothering and that might lead to some ideas.

-Manan

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
Explorer ,
Oct 28, 2021 Oct 28, 2021

It would be part of a larger script doing a lot of preprocessing. Ultimately I'll be using the endnotes to create running footnotes

 

I originally planned on using doScript to call his script but wanted to make sure there wasn't a DOM method to do it.

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 ,
Oct 28, 2021 Oct 28, 2021
LATEST

I have not looked into this particularly but if there would have been an easier way or say a more straightforward way then Peter would have used that already. My suggestion would be to use the doScript as you already investigated or maybe integrate Peter's code right into your code by picking up the pieces that are absolutely needed and skipping the rest. You could use the #include as well for modularisation of the code.

-Manan

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 ,
Oct 28, 2021 Oct 28, 2021

Are you aware that there exists a command in the type menu to convert footnotes to endnotes and endnotes to footnotes?

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
Explorer ,
Oct 28, 2021 Oct 28, 2021

Of course. And I know how to call the dialog from a script -- but then it waits for user input.

 

I'm trying to automate the process

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