Extract Preserved File Name
i have gone through 1000 photos , batch renamed them. during process made sure "preserve file name" check box turned on. ultimate goal somehow take preserved file name , put normal metadata field (i.e. keywords). right now, exists under "raw data" tab in file info panel. there script floating around copy current file name "keywords" metadata. however, access preserved file name. have thoughts on or somewhere can script this? have feeling isn't first time has tried this, have yet find scripts or posts deal specifically.
this should job...
#target bridge addpreserved = {}; addpreserved.execute = function(){ var sels = app.document.selections; (var = 0; < sels.length; i++){ var md = sels[i].synchronousmetadata; md.namespace = "http://ns.adobe.com/xap/1.0/mm/"; var preservedfname = md.preservedfilename; md.namespace = "http://ns.adobe.com/photoshop/1.0/"; md.keywords = md.keywords + ";" + preservedfname; } } if (bridgetalk.appname == "bridge"){ var menu = menuelement.create( "command", "preserved filename keywords", "at end of tools"); menu.onselect = addpreserved.execute; }
More discussions in Bridge Scripting
adobe
Comments
Post a Comment