We are working in InDesignCS2, we want to generate the report of missing Links as *.txt file or in the InDesign itself. That we need missing links names. We have the script of identifying the missing links in InDesign document. But creating report for missing links we don't have. So please suggest for this and help me.
var missingLinks = new Array;
var myLinks = app.activeDocument.links;
for ( i = 0; i < myLinks.length; i++ )
if ( myLinks[i].status == LinkStatus.linkMissing )
missingLinks.push( myLinks[i].name );
var theMessage = ( missingLinks.length > 0 ) ? "Missing links:\r" + missingLinks.join( "\r" ) : "OK!"
alert( theMessage );