Skip to main content
Participating Frequently
October 22, 2021
Answered

Script to change false endnotes into real ones

  • October 22, 2021
  • 2 replies
  • 384 views

I have a long publication with ~200 endnotes that have all been set in Text as a number in brackets "[n]" and would like to create a script that simply

- searches for a one ore more digits in square brackets

- and replaces each one by an endnote

 

I'm fine copy-pasting each endnote by hand later but so, those endnotes can just be empty to start with. 

 

I have no experience with indesign scripts and my trials so far were unsuccessful due to lack of documentation by adobe (a ton of dead links)…

I first tried using a GREP search and replacement but there's no way to add an endnote automatically in GREP…

 

Can anyone help? 

 

This topic has been closed for replies.
Correct answer Manan Joshi

Hi @Matthias Jakubek,

Did you see the following discussion? Do the scripts mentioned there help?

https://community.adobe.com/t5/indesign-discussions/how-do-i-convert-manual-endnotes-to-indesign-2018-endnotes/td-p/9532175

-Manan

2 replies

Kasyan Servetsky
Legend
October 22, 2021

Try to convert text to footnotes first, then convert footnotes to endnotes.

— Kas

Manan JoshiCommunity ExpertCorrect answer
Community Expert
October 22, 2021
-Manan
Participating Frequently
November 1, 2021

Thanks Manan,

yes I did see the discussion but at first try it wasn't working for me. However I realised that the script does work once both the footnote marker AND the actual footnote are contained in the document. I did have to do some cleanup with GREP first but it eventually worked like a charm. Thanks again!

 

Best, Matt