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

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

Community Beginner ,
Feb 18, 2020 Feb 18, 2020

"Document Title" as seen here:

Screen Shot 2020-02-18 at 3.49.12 PM.png

 

"Display Title" as seen here:

 

Screen Shot 2020-02-18 at 3.49.54 PM.png

 

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

TOPICS
Scripting
968
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

correct answers 1 Correct answer

Community Expert , Feb 18, 2020 Feb 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

Translate
Community Expert ,
Feb 18, 2020 Feb 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

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
Community Beginner ,
Feb 18, 2020 Feb 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.

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
Community Expert ,
Feb 18, 2020 Feb 18, 2020

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

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
Community Expert ,
Feb 18, 2020 Feb 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 )

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
Community Expert ,
Feb 18, 2020 Feb 18, 2020
LATEST

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 )

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