Question
Bridge CS2: Scripting metadata w/o XMPScript?
Hi,
I need to get at strcutured data types (bag and alt) and I can't figure out how to do this in CS2, or if it's even possible. I've looked at the sample code in the scripting guide, but it doesn't seem to be of use. Here's what I've tried so far to get the first element in the alt structure xmpRights:UsageTerms field (labeled x-default):
var tn = new Thumbnail(fileName);
var md = tn.synchronousMetadata;
md.namespace = "http://ns.adobe.com/xap/1.0/rights/";
var rights = md.UsageTerms;
Window.alert(rights["UsageTerms/xmpRights:x-default"]);
Any suggestions?
I need to get at strcutured data types (bag and alt) and I can't figure out how to do this in CS2, or if it's even possible. I've looked at the sample code in the scripting guide, but it doesn't seem to be of use. Here's what I've tried so far to get the first element in the alt structure xmpRights:UsageTerms field (labeled x-default):
var tn = new Thumbnail(fileName);
var md = tn.synchronousMetadata;
md.namespace = "http://ns.adobe.com/xap/1.0/rights/";
var rights = md.UsageTerms;
Window.alert(rights["UsageTerms/xmpRights:x-default"]);
Any suggestions?
