edit the description metadata field.
Is it possible to edit the 'description' field through a script. I've been trying off and on all day and coming up dry. here is what i have now thanks to some script i've found from John Beardsworth (thanks, btw!!) that i managed to narrow to my needs...
#target bridge
if ( app.name == "bridge" && app.version[0] == '3' )
{
// Create main menu item
var menu = new MenuElement( "menu", "Filename to Metadata cart", "at the end of Tools", "g2mMenu");
var g2tCommand = new MenuElement("command", "click here", "at the end of g2mMenu");
//-----------------------------------------------------------------------
//Submenu for filename to iptc title
g2tCommand.onSelect = function(m)
{
var getFolderChildren = true ;
var filesOnly = true ;
var thumbs = app.document.selections;
for ( var i = 0; i < thumbs.length; i++ )
{ var thumb = thumbs;
var md = thumb.synchronousMetadata;
md.namespace ="http://purl.org/dc/elements/1.1//";
md.Description= "hello World";
}
Window.alert ("Done " + i + " records");
};
//closing brace
}
I simply cannot get it to change the info in the description field. It even willl give me the alert saying it did it and nothing will be there. this works fine for Title and Headline, but not description... any ideas?
obivously this is a simpler version of what i actually want to write into the description field, otherwise i wouldn't need a script. But if i can get this to work, i can get my real needs to work as well.
thansk.
