4 Replies Latest reply on Jan 14, 2016 1:40 PM by Xazzi

    How to return/write the name of a link.


      var myDoc = app.activeDocument.links


      function UpdateAllOutdatedLinks() {

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

              var myLink = myDoc[i];

                  $write = myLink.file.name;




      UpdateAllOutdatedLinks ()


      It's the "myLink.file.name" that is giving me trouble. What property do I use to write the link name. In the end I'm going to send these to an array and write that array to an xml file, but for now I just need to figure out how to pull the name out. Thanks.