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

Alert link undefined path

$
0
0

Hi Forum,

 

This is the one i have to alert the filePath of the links (links.everyItem placed in a document).

 

My intention is to "alert only the links which is not in a path" defined inside script.

 

 

try {

{

var theLinks = app.documents[0].links;

pathL= Folder("C:\\Documents and Settings\\Desktop")

for (var i = 0; i < theLinks.length; i++)

{

//theLinks[i].update();

if(theLinks[i].filePath.parent ! = pathL.filePath)

//{

alert(theLinks[i].filePath);     //   I want to get alert for the links which is not in pathL.filePath)

//}

}

}

} catch (e) {}

 

thanks forum,


Viewing all articles
Browse latest Browse all 37788


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