Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

InDesign list hyperlink url

Community Beginner ,
Nov 14, 2025 Nov 14, 2025

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

 

 

Ekran Resmi 2025-11-14 16.14.08.png

TOPICS
Performance , Print , Scripting , Type
92
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Engaged , Nov 18, 2025 Nov 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?

Translate
Engaged ,
Nov 18, 2025 Nov 18, 2025
LATEST

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
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines