Skip to main content
Participating Frequently
Nov 14, 2025 1:23 PM UTC
Question

InDesign list hyperlink url

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

 

 

3 replies

Legend
Nov 18, 2025 12:38 PM UTC

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?

Translate
Participating Frequently
Feb 5, 2026 7:23 AM UTC

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

Translate
leo.r
Community Expert
Community Expert
Feb 5, 2026 10:17 PM UTC