Skip to main content
Participant
November 16, 2006
Question

[IDS CS2][JS]: exportFile not recognising inCopy type

  • November 16, 2006
  • 4 replies
  • 679 views
// working
var myItem = myDocument.textFrames[0];
myItem.exportFile(ExportFormat.jpg, myFile);

// working
myDocument.exportFile(ExportFormat.jpg, myFile);

// not working
var myItem = myDocument.textFrames[0];
myItem.exportFile(ExportFormat.inCopy, myFile);

// ---
Anyone have an idea why the textframe does not recognise "ExportFormat.inCopy" ?
I think "myDocument.textFrames[0];" is the correct statement to obtain a "textFrame"
page 1068 on the CS scripting guide shows "ExportFormat.inCopy" as being available.
This topic has been closed for replies.

4 replies

Participating Frequently
November 28, 2006
Hi Jelle,

I have no idea about InDesign scripting but you can try this:

myItem.parentStory.exportFile(ExportFormat.incopy, myFile);

there is a forum specifically for scripting:

http://www.adobeforums.com/cgi-bin/webx?13@@.3bbf275d
Participating Frequently
November 28, 2006
i'm now getting the following error:
>The specified object does not support the desired export format.

when using:
>var myItem = myDocument.textFrames[0];
>myItem.exportFile(ExportFormat.incopy, myFile);
Inspiring
November 17, 2006
It should be:

ExportFormat.incopy

Dave
Participating Frequently
November 17, 2006
I'm looking into this.