Copy link to clipboard
Copied
I want to list the URL redirects added to the document using Edit Hyperlinks. Can we do this?
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?
Copy link to clipboard
Copied
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?
Find more inspiration, events, and resources on the new Adobe Community
Explore Now