• 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: Deivy Petrescu <email@hidden>
  • Date: Sun, 31 May 2009 21:41:06 -0400


On 31/05/2009, at 18:20 , Michelle Steiner wrote:

On May 31, 2009, at 11:12 AM, Deivy Marck Petrescu wrote:

I understand Michelle,
However,
set foo to {x:"text", y:5, class:"temp", z:pi}

Now I ask you; what is the class of "foo"?

It's a record, but you can't get that from Applescript because you're asking it for the value of the item labeled "class".


There's no way that I know of for it to give you both. Nor can it read your mind to find out which you want.

-- Michelle

--
I've noticed lately that the paranoid fear of computers becoming intelligent and taking over the world has almost entirely disappeared from the common culture. Near as I can tell, this coincides with the release of MS-DOS.
-- Larry DeLuca

However nice Larry's statement above is, and even Nigel's clever trick to get a record to be a record does not fix the problem.
Th stament "class of foo" becomes ambiguous. To which class am I referring to?


It is a BUG and it is not fixable in my opinion, unless AS engineers decide to prevent people to enter "class" as a label for a record.
not a good idea.


Now, Apple's apps returning "class" inside a record does not seem to me as a good implementation.

However, and this is the problem that really brought this whole imbroglio is that if one writes

tell app "MyApp" to tell its first element to set p to its properties

"p" should be a record accessible anywhere in the script. And it is not.

Does that bother anyone else?




Deivy Petrescu email@hidden




_______________________________________________ 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
  • Follow-Ups:
    • Re: Is this a major bug or not?
      • From: Shane Stanley <email@hidden>
References: 
 >Re: Is this a major bug or not? (From: "Nigel Garvey" <email@hidden>)
 >Re: Is this a major bug or not? (From: Deivy Petrescu <email@hidden>)
 >Re: Is this a major bug or not? (From: Yvan KOENIG <email@hidden>)
 >Re: Is this a major bug or not? (From: Deivy Marck Petrescu <email@hidden>)
 >Re: Is this a major bug or not? (From: Yvan KOENIG <email@hidden>)
 >Re: Is this a major bug or not? (From: Deivy Petrescu <email@hidden>)
 >Re: Is this a major bug or not? (From: Yvan KOENIG <email@hidden>)
 >Re: Is this a major bug or not? (From: Deivy Petrescu <email@hidden>)
 >Re: Is this a major bug or not? (From: Michelle Steiner <email@hidden>)
 >Re: Is this a major bug or not? (From: Deivy Marck Petrescu <email@hidden>)
 >Re: Is this a major bug or not? (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: Is this a major bug or not?
  • Next by Date: Re: Is this a major bug or not?
  • 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