Hello Adobies!
I'm currently working on making a customized Adobe Bridge add-on that is used to enter, and extract certain metadata fields. I've been successful with the DC, IPTC Core, and Photoshop schemas, however there does not seem to be sufficient documentation/examples of using the PLUS schema (Licensor, Copyright Owner...). In fact there is not a namespace even provided for PLUS. I've basically resorted to regex and interpreting the serialized string but this does not help in updating a files metadata.
Here is an example of what I am using to extract an IPTC Core property and populate the form:
prop = myXmp.getProperty(XMPConst.NS_IPTC_CORE, "CreatorContactInfo/Iptc4xmpCore:CiAdrExtadr"); | |||
if (prop == "undefined" || prop == undefined) { | |||
tempcreatorAddress = ""; | |||
} else { | |||
tempcreatorAddress = prop; | |||
} | |||
myCreatorAddress.text = tempcreatorAddress; | |||
debugMessage("\t Creator Address: " + tempcreatorAddress); |
For accessing plus I've attempted the following:
prop = myXmp.getProperty("http://ns.useplus.org/ldf/xmp/1.0/", "plus:Licensor"); | ||
debugMessage("PROP: " + prop); | ||
prop = myXmp.getArrayItem("http://ns.useplus.org/ldf/xmp/1.0/", "plus:Licensor", 1); | ||
debugMessage("PROP: " + prop); |
Which returns either undefined (the prior) or a blank result (the latter).
I feel I must be close and maybe the path for plus:Licensor is not correct. Any assistance would be greatly appreciated!