5 Replies Latest reply on Aug 9, 2013 8:01 AM by rajnikids

    Cant able to relink

    indegn5 Level 1

      Hi Forum.

       

      I have this script to relink images, which matches the same image name..

       

      but ESTK says, file may be in use or used by network server...

       

       

       

      var aDoc = app.activeDocument.links;

      myS = app.activeDocument.filePath.parent + "/Links/"; //the folder contains links....

      for(var n = 0; n < aDoc.length; n++) {

      //var Link = aDoc.links[n];

      if (aDoc[n].status == LinkStatus.linkMissing) {

      aDoc[n].relink(File(myS));

      alert(aDoc[n].name);

      }}

       

      many thanks for the help!..