Skip to main content

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
Participant
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