Hello,
I do have this bit from the below link;
http://20.adobe-scripting-indesign.overzone.net/filtering-alerting-upo n-link-path-t2157.html
try with this.
try {
{
var theLinks = app.documents[0].links;
myserver = "/Users/wleastudio/Desktop"
for (var i = 0; i < theLinks.length; i++)
{ theLinks[i].update();
if(theLinks[i].filePath.indexOf(myserver) == -1)
//{ confirm("The file path doesn't point to the server " + myserver + "\r" +"shall we continue ?"); }
alert(theLinks[i].filePath); } }// }
} catch (e) {}