description in metadata in cs5
Hi,
Here is a script that output the keywords in the keywords metadata but dont do the same for the description part. (prompt)
addNametoMeta.execute = function(){
var shiftRange = prompt("test", 10);
var descript = prompt("Description", 10);
var sels = app.document.selections;
for (var i = 0; i < sels.length; i++){
var md = sels.synchronousMetadata;
md.namespace = "http://ns.adobe.com/photoshop/1.0/";
var Name = decodeURI(sels.name).replace(/\.[^\.]+$/, '');
md.Keywords = md.Keywords + ";" + shiftRange + ";" + Name;
md.description[0] = md.description[0] + shiftRange + descript;
}
}
