Skip to main content
tedp80165091
Participant
February 18, 2020
Answered

Does anyone know how to set these properties in ExtendScript for InDesign?

  • February 18, 2020
  • 3 replies
  • 1002 views

"Document Title" as seen here:

 

"Display Title" as seen here:

 

 

I've been looking through the documentation for ages, and trying to root around in the debugger, but come up with nothing.

This topic has been closed for replies.
Correct answer brian_p_dts

document.metadataPreferences.documentTitle for the first. 

 

app.pdfExportPreferences.pdfDisplayTitle for the second.

 

This site is your friend if you don't use it: https://www.indesignjs.de/extendscriptAPI/indesign-latest/#PDFExportPreference.html

3 replies

Community Expert
February 18, 2020

A bit more advanced:

 

Fill InDesign XMP info from document content
Marijan Tompa (tomaxxi), August 31, 2010

https://indisnip.wordpress.com/2010/08/31/fill-indesign-xmp-info-from-document-content/

 

Storing custom data into InDesign file via XMP
Marijan Tompa (tomaxxi), September 7, 2010

https://indisnip.wordpress.com/2010/09/07/storing-custom-data-into-indesign-file-xmp/

 

Regards,
Uwe Laubender

( ACP )

Community Expert
February 18, 2020

Hi,

see into metadataPreferences of object Document.

There you find property documentTitle.

 

https://www.indesignjs.de/extendscriptAPI/indesign-latest/#MetadataPreference.html

 

app.documents[0].metadataPreferences.properties =
{
	documentTitle : app.documents[0].name ,
	author : "Uwe Laubender"
};

 

Other properties as well like  description or copyrightNotice.

 

For the PDF export look into:

https://www.indesignjs.de/extendscriptAPI/indesign-latest/#PdfDisplayTitleOptions.html

 

Regards,
Uwe Laubender

( ACP )

brian_p_dts
Community Expert
brian_p_dtsCommunity ExpertCorrect answer
Community Expert
February 18, 2020

document.metadataPreferences.documentTitle for the first. 

 

app.pdfExportPreferences.pdfDisplayTitle for the second.

 

This site is your friend if you don't use it: https://www.indesignjs.de/extendscriptAPI/indesign-latest/#PDFExportPreference.html

tedp80165091
Participant
February 18, 2020

I've actually been using this one because I like the UI better:

http://yearbook.github.io/esdocs/#/

But it was missing the latter for some reason.

brian_p_dts
Community Expert
Community Expert
February 18, 2020

It also doesn't have robust search functionality like the other, and only goes up to CS 14.