• 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: Is this a major bug or not?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Re: Is this a major bug or not? (From: Philip Aker <email@hidden>)
 >Re: Is this a major bug or not? (From: Philip Aker <email@hidden>)
 >Re: Is this a major bug or not? (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: InDesign - CS2 and CS3 duplicate method is different?
  • Next by Date: Re: InDesign - CS2 and CS3 duplicate method is different?
  • Previous by thread: Re: Is this a major bug or not?
  • Next by thread: Re: Is this a major bug or not?
  • Index(es):
    • Date
    • Thread