Target the Source Hyperlink Destination Document of an Hyperlinks
I have a bunch of InDesign Doc, with Hyperlink with source are an anchor text in others InDesign document. If I rename the source document, all the hyperlink will be broken.
I have a script that can perform a GREP change/replace but it for URL Destination.
How can I edit this part to change it to the Document Destination name instead.
This part need to be edited.
var dests = app.documents[0].hyperlinkURLDestinations.everyItem().getElements();
for(var i=0;i<dests.length;i++){
dests[i].destinationURL = dests[i].destinationURL.replace(grepForFind,grepForReplace);

