Skip to main content
Participant
November 14, 2025
Question

InDesign list hyperlink url

  • November 14, 2025
  • 1 reply
  • 129 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?

Participant
February 5, 2026

I want to get the URL, but I don't know how to use the one you sent.

leo.r
Community Expert
Community Expert
February 5, 2026