• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Aaaarrrggghhh XML!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Aaaarrrggghhh XML!
      • From: Roger Howard <email@hidden>
References: 
 >Re: Aaaarrrggghhh XML! (From: Roger Howard <email@hidden>)

  • Prev by Date: Re: Dock Q...
  • Next by Date: Re: shell script and text manipulation
  • Previous by thread: Re: Aaaarrrggghhh XML!
  • Next by thread: Re: Aaaarrrggghhh XML!
  • Index(es):
    • Date
    • Thread