How to find hyperlinks with destinations to other files
Hello Scriptmakers
I want to find Hyperlinks in a document with destinations to another InDesin-File.
I want to find this Hyperlinks by a JavaScript,
I have tried this
if (app.documents.length > 0) {
main();
}
function main()
{
var doc = app.activeDocument;
var anchors = doc.hyperlinks;
//for (var n = 0; n < anchors.length; n++)
//{
anchors[0].showSource(); // This works fine.
anchors[0].showDestination(); // This goes to the right page but in the wrong file.
// The following works, but this is not what I need.
alert(anchors[0].destination.name);
alert(anchors[0].destination.destinationText.parentTextFrames[0].parentPage.name);
alert(anchors[0].destination.constructor.name);
//}
}
I am missing something like this:
...destination.parentFile.name
Who can help?
Thanks from
InDesignerix
