Skip to main content
Inspiring
August 8, 2009
Question

JS InDesign: download and embed image

  • August 8, 2009
  • 1 reply
  • 1567 views

Hi,

I need my script to palce an eps file into myLogoFrame from my desktop. This what I was able to find in OMV:


myLogoFile.itemLink  = desktop.myFolder("MyLogo.eps");

myLogoFile.place ("ND MastHead.eps", true, embed) = myLogoFrame;


I need the file to be placed into specific frame and I need to be able to specify the full path name of the source file, and then embed the file into InDesign.


I realize that this is might not even be on the right track, I am not sure where to look for more information.

Your help is highly appreciate.

Yulia

This topic has been closed for replies.

1 reply

Peter Kahrel
Community Expert
Community Expert
August 8, 2009

This is one way to do it:

myFile = File (Folder.desktop + "/MyLogo.eps");
if (myFile.exists)
  {
  myLinkArray = myLogoFrame.place (myFile);
  myLinkArray[0].itemLink.unlink();
  }

Peter

YuliaartAuthor
Inspiring
August 10, 2009

Thank you, Peter, works like magic.

Participant
November 23, 2010

Hi,

  We did the same. When we save new .INDD file and open the file in ADOBE, Images does not show up? Any idea

Vish