Welcome Dialog

Welcome to the Community!

We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.


Script to change false endnotes into real ones

Community Beginner ,
Oct 22, 2021 Oct 22, 2021

Copy link to clipboard

Copied

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? 

 

TOPICS
Scripting

Views

66

Likes

Translate

Translate

Report

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 1 Correct answer

Adobe Community Professional , Oct 22, 2021 Oct 22, 2021

Likes

Translate

Translate
Adobe Community Professional ,
Oct 22, 2021 Oct 22, 2021

Copy link to clipboard

Copied

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-201...

-Manan

Likes

Translate

Translate

Report

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 Beginner ,
Nov 01, 2021 Nov 01, 2021

Copy link to clipboard

Copied

LATEST

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

Likes

Translate

Translate

Report

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
Guru ,
Oct 22, 2021 Oct 22, 2021

Copy link to clipboard

Copied

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

— Kas

Likes

Translate

Translate

Report

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