Skip to main content
Inspiring
April 26, 2024
Answered

Text anchors

  • April 26, 2024
  • 3 replies
  • 2022 views

I’m having trouble with a long document in InDesign. I suspect it’s because of a large number of text anchors that somehow were introcduced when a copyeditor imported a lengthy series of endnotes in Word. Now the INDD doc is sluggish, crashy and generally hard to handle.

 

Is there any way to find and replace these anchors? I can’t seem to find the right search string.

 

Thanks! CWS

This topic has been closed for replies.
Correct answer Robert at ID-Tasker

@cwscarbrough 

 

OK, I know what is "wrong" with your file...

 

Your text is linked as ICML - you've mentioned InCopy but I have Links pallet closed and I've ignored initial message about missing links:

 

I wasn't even able to search for the "endnote" numbers so I started digging and found out that this Story is linked.

 

After I've UNLINKED it - my script:

 

app.activeDocument.hyperlinkTextDestinations.everyItem().remove();

 

works perfectly fine on your sample.

 

Not sure if you can or should - but if you can or as you have this ICML file - you can run this script in InCopy.

But you need to be careful - it will remove ALL hyperlinkTextDestinations... so you might need more "targeted" - something that will check if destiation is dead and only then remove it.

 

3 replies

Robert at ID-Tasker
Robert at ID-TaskerCorrect answer
Legend
April 27, 2024

@cwscarbrough 

 

OK, I know what is "wrong" with your file...

 

Your text is linked as ICML - you've mentioned InCopy but I have Links pallet closed and I've ignored initial message about missing links:

 

I wasn't even able to search for the "endnote" numbers so I started digging and found out that this Story is linked.

 

After I've UNLINKED it - my script:

 

app.activeDocument.hyperlinkTextDestinations.everyItem().remove();

 

works perfectly fine on your sample.

 

Not sure if you can or should - but if you can or as you have this ICML file - you can run this script in InCopy.

But you need to be careful - it will remove ALL hyperlinkTextDestinations... so you might need more "targeted" - something that will check if destiation is dead and only then remove it.

 

Inspiring
April 29, 2024

Robert – thanks for your generous offer and your amazing hard work. The script cleared out the anchors. I’m very grateful. CWS

Robert at ID-Tasker
Legend
April 29, 2024
quote

Robert – thanks for your generous offer and your amazing hard work. The script cleared out the anchors. I’m very grateful. CWS


By @cwscarbrough

 

Always happy to help. 

 

Robert at ID-Tasker
Legend
April 26, 2024

@cwscarbrough

 

If you work on a PC - you could try free version of my tool - ID-Taker - with one click you can get complete structure of your text / document and with double click on an item on the list - get to this item instantly. 

 

Inspiring
April 26, 2024

Thanks, Robert, but I’m on Mac. CWS

Robert at ID-Tasker
Legend
April 27, 2024
quote

Thanks, Robert, but I’m on Mac. CWS


By @cwscarbrough

 

If you send me your file - INDD alone - on priv I can convert those "endnotes" to real ones and also remove those dead bookmarks. 

 

James Gifford—NitroPress
Legend
April 26, 2024

Try the simple "big hammer" fix: save/export the doc to IDML, then open that and save it as INDD under a new name. It may not work in this case, but that process purges and rewrites the doc structure, especially link-related elements. Such a cleanup might make the many links and anchors less troublesome.

Inspiring
April 26, 2024
Thank you for the idea. I’ve already tried that, to no effect. I’m
currently reviewing line by line in InCopy, which seems to be the only way
to hunt the things down. (Story Editor crashes hard every time I try that
route.) CWS

Carl W. Scarbrough
carlwscarbrough.com
James Gifford—NitroPress
Legend
April 26, 2024

Oh, well, it's a tool always worth a try. 🙂

 

I'm not clear on exactly what these bits of grit are, in strict technical terms. Are they anchored items? End note links? Something else?

 

Most things in an ID doc can be searched or managed by something... details would help, here.