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

InDesign Metadata script for document title and author

Explorer ,
Dec 16, 2024 Dec 16, 2024

Hi, I need to add metadata on 100+ documents for three different products. Is it a script that I can run on them instead of manually adding meta doc title and author 1 by 1?

For exmaple, the file name is TEST_document_form.pdf, title will need to be TEST document form, and author will be TEST. Basically, same file name for title but without the underscores and '.pdf.' (See screenshot). I have three product names for 'author' (i.e. TEST), I will need to be to able amend this in the script.

These documents will be updated from time to time, so I'm looking for an efficient way to maintain.


I have seen people post scripts in replies, but I'm not sure how to save it as a script file? i.e copy the code from broswer, then where do I paste to re-save and what format? Apologises if this is silly but I'm new to scripts and couldn't quite understand it from other posts.

Many thanks for any help in advance.




TOPICS
Import and export , UXP Scripting
3.2K
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

Valorous Hero , Dec 23, 2024 Dec 23, 2024

You discovered a bug in the script (Thank you!), and I fixed it. Here’s a new version.

Version 5.0 ‘thought’ it was an IDML file (not saved file yet), so it added the superfluous extension. This version adds it only if it is missing and explicitly writes into the log if the file is converted from IDML/an older version.

2024-12-23_11-50-02.png

Does it work for you now properly?

Translate
LEGEND ,
Dec 19, 2024 Dec 19, 2024

List of all available Metadata Preferences - of the Document but Links have the same:

 

metadataPreferences
metadataPreferences_Author
metadataPreferences_CopyrightInfoURL
metadataPreferences_CopyrightNotice
metadataPreferences_CopyrightStatus
metadataPreferences_CreationDate
metadataPreferences_Creator
metadataPreferences_Description
metadataPreferences_DocumentTitle
metadataPreferences_Format
metadataPreferences_JobName
metadataPreferences_Keywords
metadataPreferences_ModificationDate
metadataPreferences_Parent
metadataPreferences_ServerURL

 

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