Re: Best way to get at these text elements
Re: Best way to get at these text elements
- Subject: Re: Best way to get at these text elements
- From: Philip Aker <email@hidden>
- Date: Mon, 02 Oct 2006 10:48:18 -0700
On 2006-10-02, at 09:30:20, Jaime Magiera wrote:
Looks like you're getting the text value from 'defaults read ...'
because that's exactly what a plist array containing dictionaries
looks like. So you'd be better off to read the plist directly with
the items in the Property List suite in System Events.
Hi,
Yeah, I have a version of the script that uses Property List Suite.
However, I have to write a version that works < 10.4. There are
still holdouts in my production environment.
Yuk, in that case I'd look to xsltproc but I think that only became
available in 10.3. Otherwise you might be able to use a combination
of 'grep', 'cut', and 'tr' to obtain clean values in parallel lists
(1 per key) and match them up since that will work on 10.2 as well.
Philip Aker
email@hidden
_______________________________________________
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