Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How to get started with the Scripting API

New Here ,
Mar 10, 2011 Mar 10, 2011

I've seen a number of "where did you ever find that" posts in the forums, and wonder if there is a roadmap to the definition of methods like exportFile(a,x).  I'm sure it's documented somewhere, and I'll happily read a whole book, if I could only find the book!

Anyone know if there's a roadmap, or an API manual that includes exportFile?  I have the javascript tools guide and a number of other downloads that sounded like they might be the right API, but no luck thus far!

--dave

TOPICS
Scripting
1.4K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 10, 2011 Mar 10, 2011

You want the Adobe InDesign CS5 Scripting Guide .The last two sections of chapter 3 cover exporting.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 11, 2011 Mar 11, 2011

Thanks, that's where I got started, and found just enough to whet my appetite (;-))

--dave

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Mar 10, 2011 Mar 10, 2011

The best roadmap is here. On this page you can find a couple of books on InDesign scripting.

Kas

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 11, 2011 Mar 11, 2011

Well, I didn't find a roadsmap, but I did find the equivalent of javadoc, staring with

http://cssdk.host.adobe.com/sdk/1.0/docs/WebHelp/references/csawlib/com/adobe/indesign/ExportFormat.html

--dave

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Mar 11, 2011 Mar 11, 2011
LATEST

Hmmm -- what programming language are you using? Your example, for example, is for Flash/Actionscript (?).

"The best" (according to Kasyan, in any case ) is geared to Javascript, and that's a good thing because Javascript is supported directly by InDesign. And it slightly depends on the software you are using to view it with, but with both Robin Lu's iChm (for Mac) and the standard Windows Help viewer (for, euh, Windows) I can do a free search on "export" and find this:

Enumeration

ExportFormat

Export format options.

Value

NameDescriptionValue
ExportFormat.EPS_TYPEExports to EPS format.1952400720 = 't_EP'
ExportFormat.INCOPY_DOCUMENTExports to InCopy document (INCX) format.1702126456 = 'etcx'
ExportFormat.INCOPY_MARKUPExports to InCopy markup (ICML) format.1768123756 = 'icml'
ExportFormat.INDESIGN_INTERCHANGEExports to InDesign CS3 interchange (INX) format.1229871136 = 'INX '
ExportFormat.INDESIGN_MARKUPExports to InDesign markup (IDML) format.1768189292 = 'idml'
ExportFormat.INDESIGN_SNIPPETExports to InDesign snippet (IDMS) format.1936617588 = 'snpt'
ExportFormat.JPGExports to JPEG format.1246775072 = 'JPG '
ExportFormat.PACKAGED_XFLExports to packaged XFL format.1702389356 = 'exfl'
ExportFormat.PDF_TYPEExports to PDF format.1952403524 = 't_PD'
ExportFormat.PNG_FORMATExports to PNG format.1699761735 = 'ePNG'
ExportFormat.RTFExports to rich text format (RTF).1381254688 = 'RTF '
ExportFormat.SWFExports to SWF format.1702066022 = 'eswf'
ExportFormat.TAGGED_TEXTExports to a tagged text file with a TXT extension.1416066168 = 'Tgtx'
ExportFormat.TEXT_TYPEExports to text (TXT) format.1952412773 = 't_te'
ExportFormat.XMLExports the document's tagged content to XML.1481460768 = 'XML '

Usage

In function

void Button.exportFile (format: {ExportFormat | String} , to: File[, showingOptions: bool=false][, using: PDFExportPreset][, versionComments: string][, forceSave: bool=false])

(dozens of similar lines omitted ...)

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines