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

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

New Here ,
Oct 02, 2013 Oct 02, 2013

Copy link to clipboard

Copied

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
Actions and scripting

Views

1.6K

Translate

Translate

Report

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
Adobe
Community Expert ,
Oct 02, 2013 Oct 02, 2013

Copy link to clipboard

Copied

I could be wrong, but I'm pretty sure you have to use bridge to do this, as it can change the metadata without opening the file.  It would be great if this could be done in PS, as I'm much more familiar writing scripts for it than in Bridge.

Votes

Translate

Translate

Report

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 ,
Oct 02, 2013 Oct 02, 2013

Copy link to clipboard

Copied

Thanks, if I manage to get one working I'll share.

Votes

Translate

Translate

Report

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
Guru ,
Oct 02, 2013 Oct 02, 2013

Copy link to clipboard

Copied

If you want a Photoshop only solution you can use the AdobeXMPScript to edit the metadata without opening the files in Photoshop. The JavaScript Tools Guide has the details in the chapter named "Scripting Access to XMP Metadata".

Otherwise you could send a BridgeTalk message from Photoshop to Bridge to edit the metadata. Or just write a Bridge script with Photoshop out of the loop.

Votes

Translate

Translate

Report

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 ,
Oct 02, 2013 Oct 02, 2013

Copy link to clipboard

Copied

LATEST

Hi Michael

Thanks for the reply, I'm not fussed whether I perform the script through Photoshop or Bridge; just as long as it;s the most efficient method.

I had a quick look at this, but wasn't quite sure where to start. I usually use the help from the forum combined with the guides to finally get to grips with what I'm trying to do.

Would you reccomend Bridge over Photoshop?

Thanks,

Tom

Votes

Translate

Translate

Report

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