Skip to main content
Inspiring
Aug 20, 2015 1:59 PM UTC
Question

Script to Edit IPTC Data

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 is closed to new replies. Start a new post to keep the conversation going.

4 replies

Inspiring
Aug 24, 2015 6:42 PM UTC

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

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

Translate
Inspiring
Aug 25, 2015 6:10 PM UTC

So there is no way to edit stuff like event?

Translate
Inspiring
Aug 25, 2015 6:30 PM UTC

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.

Translate