Skip to main content
Participant
November 14, 2025
Question

InDesign list hyperlink url

  • November 14, 2025
  • 1 reply
  • 70 views

I want to list the URL redirects added to the document using Edit Hyperlinks. Can we do this?

 

 

1 reply

Inspiring
November 18, 2025

Is it correct to say you want to get the URL of the hyperlink destination?

var hyperlinksInfo = "";
for(i = app.activeDocument.hyperlinks.count() -1; i >= 0; i--){
	if(app.activeDocument.hyperlinks[i].destination.hasOwnProperty("destinationURL")){
		hyperlinksInfo +=
			app.activeDocument.hyperlinks[i].name +
			" : " +
			app.activeDocument.hyperlinks[i].destination.destinationURL +
			"\n";
	}
}
alert(hyperlinksInfo);

How about this?