1 Reply Latest reply on Mar 7, 2011 1:57 AM by Ten A

    Relink images

    designmon79 Level 1

      Hi,

       

      There are several images placed in my documents which name have been changed. Only an extension .eps added in all images name.

       

      Anyone know how to relink images with new name.

       

      Thanks,

      Mon

        • 1. Re: Relink images
          Ten A Adobe Community Professional

          I don't know how to Relink images. But I know how to get fullpath of placing images, and how to place Images in rectangles.

           

          We can collect Images filepath,

           

          app.activeDocument.rectangles[0].epss[0].properties.itemLink.filePath

           

          If you only change filenames extension, you can replace the EPS images, and other properties can keep before replace Images.

           

           

          for (var i=0;i<app.activeDocument.rectangles.length;i++) {
              if (app.activeDocument.rectangles[i].epss.length>0){
                  var n = app.activeDocument.rectangles[i].epss[0].properties.itemLink.filePath;
                  var f = File (n);
                  app.activeDocument.rectangles[i].place(f);
                  }
              }

           

           

          Though it only has to be useful...