Article View: adobe.photoshop.scripting
Article #264Re: Getting more than just the EXIF from an Image...
From: xbytor
Date: Fri, 13 Feb 2009 00:36
Date: Fri, 13 Feb 2009 00:36
22 lines
1131 bytes
1131 bytes
> Basically, I'm looking for something like the example I posted, but it will list not only the EXIF data, but the aux, iptc, etc...
Try this:
var doc = app.activeDocument;
var str = doc.xmpMetadata.rawData;
var rex = /<([^>]+)>([^<]+)<\/(?:\1)>/m;
var m;
while (m = rex.exec(str)) {
var tag = m[1];
var value = m[2];
alert(tag + ' : ' + value);
str = RegExp.rightContext;
}
-X
Technical Details
Message-ID:
<DFBA272AA02B556D220DB2AFF9577EC9@in.webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newshub.sdsu.edu!webcrossingReferences:
<59b7c6bf.-1@webcrossing.la2eafNXanI> <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: xbytor@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.photoshop.scripting Subject: Re: Getting more than just the EXIF from an Image... Message-ID: <DFBA272AA02B556D220DB2AFF9577EC9@in.webcrossing.la2eafNXanI> Date: Thu, 12 Feb 2009 16:36:29 -0800 References: <59b7c6bf.-1@webcrossing.la2eafNXanI> <59b7c6bf.1@webcrossing.la2eafNXanI> Lines: 23 User-Agent: Thunderbird 2.0.0.19 (Macintosh/20081209) MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit