Article View: adobe.photoshop.scripting
Article #459Re: Getting more than just the EXIF from an Image...
From: Paul_R
Date: Wed, 04 Feb 2009 10:03
Date: Wed, 04 Feb 2009 10:03
33 lines
1126 bytes
1126 bytes
Using Xbytors function you can extract the details via a tag....
#target photoshop
var xmp = activeDocument.xmpMetadata.rawData;
alert(parseMetadata(xmp,"aux:Lens"));
function parseMetadata(xmp, tag) {
var re = new RegExp('<' + tag + '>(.+)</' + tag + '>');
var m = xmp.match(re);
if (!m) {
re = new RegExp("<[^:]+:" + tag + ">(.+)</[^:]+:" + tag + '>');
m = this.xmp.match(re);
}
return (m ? m[1] : '');
};
Technical Details
Message-ID:
<59b7c6bf.0@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!news2.glorb.com!newshub.sdsu.edu!webcrossingReferences:
<59b7c6bf.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f5839,3f8f0f34e1bba39f X-Google-Attributes: gidf5839,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Paul_R@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!news2.glorb.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.photoshop.scripting Subject: Re: Getting more than just the EXIF from an Image... Message-ID: <59b7c6bf.0@webcrossing.la2eafNXanI> Date: Wed, 4 Feb 2009 02:03:13 -0800 References: <59b7c6bf.-1@webcrossing.la2eafNXanI> Lines: 20 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit