Skip to main content
Inspiring
August 20, 2015
Question

Script to Edit IPTC Data

  • August 20, 2015
  • 1 reply
  • 980 views

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

This topic has been closed for replies.

1 reply

Inspiring
August 24, 2015

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

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

Inspiring
August 25, 2015

So there is no way to edit stuff like event?

Inspiring
August 25, 2015

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.