• 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: Best way to get at these text elements
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Best way to get at these text elements (From: Jaime Magiera <email@hidden>)
 >Re: Best way to get at these text elements (From: Philip Aker <email@hidden>)
 >Re: Best way to get at these text elements (From: Jaime Magiera <email@hidden>)

  • Prev by Date: Re: Converting application classes to raw codes in chevrons
  • Next by Date: Re: Applying Character style in Word 2004
  • Previous by thread: Re: Best way to get at these text elements
  • Next by thread: Re: Best way to get at these text elements
  • Index(es):
    • Date
    • Thread