• 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: Meeting a matrix of conditions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Meeting a matrix of conditions


  • Subject: Re: Meeting a matrix of conditions
  • From: Emmanuel <email@hidden>
  • Date: Tue, 14 Sep 2004 08:22:38 +0200

At 12:40 AM -0500 14/09/04, Joseph Weaks wrote:
I figure there must be a more clever & efficient way to do this:

The very clever and extremely efficient way would be to use a p-list, but it's more work: would make little sense if that's a once-for-all operation. For instance you would build the p-list with:


set textplist to "<dict>
<key>av</key><string>apple</string>
<key>bx</key><string>apple</string>
<key>bw</key><string>apple</string>
[...]
</dict>"

Then you "open" (really, parse) the p-list with:

set myplist to PListOpen textplist

And finally (ta-da!) you would just write:

set z to PListGet (PListChild myplist key (x & y))

More information on the p-lists at:
<http://www.satimage-software.com/en/plist_suite.html>

Emmanuel
Satimage-software
_______________________________________________
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: 
 >Meeting a matrix of conditions (From: Joseph Weaks <email@hidden>)

  • Prev by Date: Re: String to list conversion
  • Next by Date: Re: unicode text coercion to number bug?
  • Previous by thread: Meeting a matrix of conditions
  • Next by thread: Re: Meeting a matrix of conditions
  • Index(es):
    • Date
    • Thread