Re: Meeting a matrix of conditions
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