Quantcast
Channel: Adobe Community: Message List - InDesign Scripting
Viewing all articles
Browse latest Browse all 37788

Re: Alert link undefined path

$
0
0

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) {}


Viewing all articles
Browse latest Browse all 37788

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>