5 Replies Latest reply: Apr 8, 2012 8:23 AM by Kasyan Servetsky RSS

    How to check if a link reside inside a folder called Links beside the document?

    dulajun Community Member

      How to check if a link reside inside a folder called Links beside the document?

       

      var myDocument = app.activeDocument;

      for(var myCounter = 0; myCounter < myDocument.allGraphics.length;myCounter++)

      {

                var myGraphic = myDocument.allGraphics[myCounter];

                if(myGraphic.itemLink.status != LinkStatus.linkMissing)

                {

                          if (myGraphic.itemLink.filePath is Outside of the "Links" folder that reside beside this document)

                          {

                          }

                }

      }