Custom XMP Metadata Not Showing in InDesign File Info Panel (Using UXP)
Hi Adobe Community,
I'm trying to custom XMP metadata into an InDesign file using uxp scripting
Here is the code I'm using
let meta = new XMPMeta();
meta.setProperty(XMPConst.NS_XMP, "Name", "vkumarg");
let prop = meta.getProperty(XMPConst.NS_XMP, "Name");
console.log(prop.namespace); // xmp namespace
console.log(prop.options);
console.log(prop.path); // Name
This sets the property xmp:Name vkumarg /xmp:Name under the standard XMP namespace (http://ns.adobe.com/xap/1.0/).
However, after saving and reopening the file in Adobe InDesign, and going to:
File → File Info → Advanced → Raw Data
"The xmp:Name tag and value are not shown."
Is this the correct way to write custom XMP metadata using UXP in InDesign?
Why is the value not being shown in the rawInput section?
