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

How to write IPTC metadata to files without opening the file?

New Here ,
Oct 02, 2013 Oct 02, 2013

HI,

I'm trying to run a script (preferably in JS) that allows me to write metadata to a file. I can acheive this very easily by opening the file, but I'd need to batch process many large images, so opening them would cause severe slowness. The purpose of adding the metadata to the files is to search upon them in Bridge.

We're using CS5, but have CS6 if it's better to use.

My Script

// set current doc ref

var docRef = app.activeDocument;

// Set caption in active document

docRef.info.caption = "Some Meta-Data";

Do I need to use bridge to write the metadata without opening the file? Or can running the script in PS allow me to do so?

Thanks,

Tom

TOPICS
Scripting
792
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
Enthusiast ,
Oct 09, 2013 Oct 09, 2013
LATEST

Its easy if you use XMP metadata.

app.activeDocument.info.caption (in photoshop script metadata)

and it is the same field as:

     Dublin Core namespace

     namespace:     http://purl.org/dc/elements/1.1/

     Property:          description

you change description on XMP = you are changing the same image.info.caption

Your answer is here:

http://forums.adobe.com/message/5743730#5743730

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