John,
Thanks for your quick response. Below is the script I just modified this morning. When looking in the keyword field, it returns the word "undefined" for all records.
I tried that yesterday and it didn't work. When looking at the Advance file info on Adobe Bridge I see the below format which had 2 levels. All the others I used only had one. Since I am not a programmer, I need help on that part of the script.
==========================
EXIF Properties (exif,http://ns.adobe.com/exif/1.0/)
- exif:Flash
- exif:Fired: True
====================================
Any luck on determining how to obtain file size.
Again thank you so much for supporting me on my project,
Arnold
=====================
#target bridge
if (BridgeTalk.appName == "bridge")
{
// Let's create our menu
var menu = MenuElement.create( "command", "Export CSV File", "at the end of Tools");
menu.onSelect = function(m) {
try
{
// Let's ask what the name of the output file
var f = File.saveDialog("Export file list to:", "Comma delimited file:*.CSV");
// Write the column headings
f.open("w");
f.writeln("Seq Number,New File Name,New File Name Path,Original File Name,Org Dt & Tm,ISO,Exposure Time,F Stop,EV,Exposure Program,Meter Mode,Focal Length,Flash,Lens,Author, Author's Position,City,Country,Description,Title,Orientation,Width,Height,Rating,Label");
// Let's get a list of all the visible thumbnails
var items = app.document.visibleThumbnails;
for (var i = 0; i < items.length; ++i) { var item = items; f.writeln(i + 1, ",\"", item.name, "\",\"", item.path.replace(/\"/g, "\"\""), "\",\"", ListMetadata(item), "\",\"", "\"" ); } f.close(); } catch(e) { } } menu.onDisplay = function(m) { m.enabled = app.document.contentPaneMode == "filesystem" && app.document.visibleThumbnails.length > 0;
}
}
function ListMetadata(tn)
{
md = tn.metadata;
md.namespace = "http://ns.adobe.com/photoshop/1.0/";
varAuthor = md.Author + "\",\"" + md.AuthorsPosition + "\",\"" + md.City + "\",\"" + md.Country + "\",\"";
md.namespace = "http://ns.adobe.com/exif/1.0/aux/";
varLens = md.Lens + "\",\"" ;
md.namespace = "http://purl.org/dc/elements/1.1/";
vartitle = md.title + "\",\"" + md.description + "\",\"" ;
md.namespace = "http://ns.adobe.com/xap/1.0/mm/"
VarPreservedFileName = md.PreservedFileName + "\",\"" ;
md.namespace = "http://ns.adobe.com/exif/1.0/"
VarDateTimeOriginal = md.DateTimeOriginal + "\",\"" + md.ISOSpeedRatings + "\",\"" + md.ExposureTime + "\",\"" + md.FNumber + "\",\"" + md.ExposureBiasValue + "\",\"" + md.ExposureProgram + "\",\"" + md.MeteringMode + "\",\"" + md.FocalLengthIn35mmFilm + "\",\"" + md.Flash + "\",\"" ;
md.namespace = "http://ns.adobe.com/tiff/1.0/"
varOrientation = md.Orientation + "\",\"" + md.ImageWidth + "\",\"" + md.ImageLength + "\",\"" ;
md.namespace = "http://ns.adobe.com/xap/1.0/"
varRating = md.Rating + "\",\"" + md.Label ;
md.namespace = "http://ns.adobe.com/photoshop/1.0/";
varKeywords = ListKeywords(md) + "\",\"" ;
function ListKeywords(md)
{
var varKeywords = "" ;
for (var i = 0; i < md.Keywords.length; ++i) { varKeywords = varKeywords + md.Keywords + ", "; } //strip off final comma and space varKeywords = varKeywords.substring( 0, varKeywords.length-2);
}
return VarPreservedFileName + VarDateTimeOriginal + varLens + varAuthor + vartitle + varOrientation + varRating + varKeywords;
}
==============================