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
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"
Copy link to clipboard
Copied
So there is no way to edit stuff like event?
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.
Copy link to clipboard
Copied
Great stuff - will give it a go very shortly