How to get the description metadata of an InCopy file without placing it, I mean from the XMPFile.
I have this code but it's give me an empty string also I'm sure that there is a description.
if (ExternalObject.AdobeXMPScript == undefined)
ExternalObject.AdobeXMPScript = new ExternalObject('lib:AdobeXMPScript');
var xmpFile = new XMPFile("/Users/Designer_002/Desktop/temp/Blocks/Block.210.00.incx", XMPConst.UNKNOWN, XMPConst.OPEN_FOR_READ);
var xmp = xmpFile.getXMP();
Thanks it's worked, I needed to write "description" instead of "description".
Look at this snippet from the above mentioned article part 2:
Almost all data stored here is in ‘Array valued XMP properties’. For example if we want to get‘description’ and we use methods from above,
we will get empty string. Thet’s because ‘description’ data is inside ‘XMP Array’. So, how to retrieve data stored there? First way is to add ‘Array’ number at the end of node name like this: