• 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: Record quirk - or bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Record quirk - or bug?


  • Subject: Re: Record quirk - or bug?
  • From: Paul Berkowitz <email@hidden>
  • Date: Thu, 31 May 2001 08:58:40 -0700

On 5/31/01 3:01 AM, "Nigel Garvey" <email@hidden> wrote:

> As 'ls' isn't a reference, there's actually no point in applying the
> dereferencing operator to it.

As I explained somewhere in my first post, I wasn't actually gratuitously
using 'contents of ls' to dereference an unreferenced record or list. In the
real-life situation i was trying to debug, AppleScript was getting confused
(understandably) because 'contents' just happens to be the label
(unalterable, because it's part of Dialog director's setup) of one of the
items _within_ the record. That's the item I was actually trying to count
(it's a list, called 'contents' of more records). The consequences of an
incorrect count of 0 of that inner list were quite dramatic and confusing.
Eventually I worked out what was going on.

But it's still odd. Presumably, as Serge discovered, there's some coercion
not being done right. There's this one instance where 'contents' of an
unreferenced list or record is not evaluated to itself when the event
'count' is applied to it, and instead of erroring (or evaluating) coerces
'nothing countable' to 0.

--
Paul Berkowitz


References: 
 >Re: Record quirk - or bug? (From: Nigel Garvey <email@hidden>)

  • Prev by Date: RE: applescript-users digest, Vol 2 #712 - 18 msgs
  • Next by Date: RE: Mac OS X Alert Sound
  • Previous by thread: Re: Record quirk - or bug?
  • Next by thread: Record quirk - or bug?
  • Index(es):
    • Date
    • Thread