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

Script to Edit IPTC Data

Explorer ,
Aug 20, 2015 Aug 20, 2015

Copy link to clipboard

Copied

Hi,

Using a script, how would I go about editing the event IPTC Extension value? To change something in the IPTC Core like the description, it would be

xmp.deleteProperty(XMPConst.NS_DC, "description");   

        xmp.setLocalizedText( XMPConst.NS_DC, "description", null, "x-default", Desc );

For title it would be

xmp.deleteProperty(XMPConst.NS_DC, "title");   

        xmp.appendArrayItem(XMPConst.NS_DC, "title", Title, 0, XMPConst.ALIAS_TO_ALT_TEXT);   

        xmp.setQualifier(XMPConst.NS_DC, "title[1]", "http://www.w3.org/XML/1998/namespace", "lang", "x-default");

For creator ir would be

xmp.deleteProperty(XMPConst.NS_DC, "creator");   

         xmp.appendArrayItem(XMPConst.NS_DC, "creator", Author, 0, XMPConst.ARRAY_IS_ORDERED);

What would it be for event and basically all the other IPTC fields?

Thanks

TOPICS
Scripting

Views

778

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
Enthusiast ,
Aug 24, 2015 Aug 24, 2015

Copy link to clipboard

Copied

Have a look at Paul's site http://www.ps-bridge-scripts.talktalk.net/

in the "Bridge Scripts" section for "IPTC Populate"

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
Explorer ,
Aug 25, 2015 Aug 25, 2015

Copy link to clipboard

Copied

So there is no way to edit stuff like event?

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
Enthusiast ,
Aug 25, 2015 Aug 25, 2015

Copy link to clipboard

Copied

Just tried this for Event and it works.

xmp.setLocalizedText( "http://iptc.org/std/Iptc4xmpExt/2008-02-29/", "Iptc4xmpExt:Event", null, "x-default", "Event" );

Some of the other fields would be difficult as some are arrays within a structure. These fields are part of the IPTC Extension and most are not covered in the Create Template.

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
Explorer ,
Aug 25, 2015 Aug 25, 2015

Copy link to clipboard

Copied

LATEST

Great stuff - will give it a go very shortly

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