2 Replies Latest reply on Nov 19, 2014 8:47 AM by Dan-BTP

    Get link for placed image

    Dan-BTP Level 1

      I am placing a graphic image file on a page in an InDesign (CS6) JavaScript script:


      var imageArray = page.place(imprintFile, [imprintImageLeft, imprintImageTop]);

      var imprintImage = imageArray[0];

      var imprintImageFrame = imprintImage.parent;

      var imprintLink = myDoc.links.lastItem();


      I want to get the link that is created when the image is placed. Is this the way to do it (reference the lastItem in the links array)?


      All I want to do is unlink the image to make it embedded. Is there a better way to do that?