Re: Is this a major bug or not?
Re: Is this a major bug or not?
- Subject: Re: Is this a major bug or not?
- From: Philip Aker <email@hidden>
- Date: Mon, 1 Jun 2009 16:10:28 -0700
On 2009-06-01, at 15:54:22, Mark J. Reed wrote:
The fact that you have to iterate through a list of pairs just means
it's not an associative array (Table ADT, Map interface, whatever).
It's still a set of key/value pairs, where you don't have to know the
keys ahead of time to access them.
Exactly. That's the bummer and the anomaly succinctly stated.
lieve Deivy's illustration above shows up that records should never
have been addressable in the forms AppleScript uses. Instead, they
should be
key/value pairs which, just to add insult to injury, is how they are
actually used in AppleEvents.
Due to an offlist post by one of the more discrete list members, I
must
amend my remark about key/value pairs to be more accurate. What I
should
have said is that in AppleEvents it's possible to obtain both the
keys and
values of any pairing in a record but in AppleScript, only possible
by using
a run script hack. Technically speaking AERecords are not key/value
associations but accessed by iterating through a list of pairings.
Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@
Democracy: Two wolves and a sheep voting on lunch.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden