Re: Aaaarrrggghhh XML!
Re: Aaaarrrggghhh XML!
- Subject: Re: Aaaarrrggghhh XML!
- From: Martin Orpen <email@hidden>
- Date: Wed, 23 Feb 2005 18:05:11 +0000
on 23/2/05 4:56 pm, Roger Howard at email@hidden wrote:
> I've done limited work with AppleScript and XMP; while XML Tools works,
> it does get a bit heady with documents like XMP. What I found easiest
> was to transform the XMP using a style sheet (XSLT), and then work with
> that (either using XML Tools, or even by transformaing the XMP to a
> simpler, non-XML format). I'm not sure if I've got a copy of any of
> these style sheets here, but I'll dig em up if I can.
Cheers.
What I'm after is something like this kind of output:
Nikon EXIF data:
ExposureTime: 1/750
ShutterSpeedValue: 9550747/1000000
FNumber: 71/10
ApertureValue: 5655638/1000000
ExposureProgram: 2
DateTimeOriginal: 2005-02-07T08:11:22Z
ExposureBiasValue: 0/1
MaxApertureValue: 43/10
MeteringMode: 5
FocalLength: 90/1
FocalLengthIn35mmFilm: 135
ISOSpeedRatings:
ISO: 200
Flash:
Fired: False
Return: 0
Mode: 0
Function: False
RedEyeMode: False
I can easily grab the info from a single layer of the xml, but as soon as I
get to the nested stuff like ISOSpeedRatings and Flash the script will fail.
Also, Photoshop files can carry a large amount of metadata with lots of
different styles and data types, so I need a flexible solution.
This seems like the sort of thing that should be handled by the OS pretty
easily - just like any plist - rather than having to loop through every
element to see how deep the data is.
I was sure that I'd seen an example in the Developer documentation, but
can't find anything relevant when I search :-(
--
Martin Orpen
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden