RE: "a reference to"
RE: "a reference to"
- Subject: RE: "a reference to"
- From: "Stockly, Ed" <email@hidden>
- Date: Wed, 30 Jan 2008 12:20:02 -0800
- Thread-topic: "a reference to"
>>>Thanks for being so patient and thorough on this. I was under the mistaken
impression that the dictionary was way more significant to the implementation
than it apparently is.
The aeut was never intended as a user resource. It's purpose was to give
developers a format upon which to develop their scripting implementations
and to build their AETE, which is the AppleEvent dictionary for
applications.
>>>The thing that's really insidious about this is that the terminology resource
doesn't match the published formal documentation, and an error in formal
documentation just adds to the potential for confusion.
Nothing insidious here. I don't believe the "published formal documentation"
even refers to using the aeut. And it certainly doesn't refer to using
contents to apply to lists and records.
>>has>>If used on an AppleScript reference object, the result is the object at
the referenced location. If used on an AppleScript object that doesn't have a
'contents' property, the result is undefined behaviour; therefore, it's a good
idea to avoid using it on such objects.
Exactly.
Adding to the confusion is using references to lists and records, which are
not the same as references to Application objects.
Also, when using
Repeat with x in y
X is a reference to an item of y.
You can dereference by any of the following:
Set z to contents of x as item
Set z to contents of contents of x
Copy contents of x to z
Or, if you know the class of x,
Set z to x as text --or whatever class it should be
(I always thought that copy x to z would also dereference, but, when working
with lists and records, it doesn't.)
>>>> I was informed that events could only act on objects whose classes are
defined within the same suite. Is this true, or did someone spin me a yarn?
False.
ES
_______________________________________________
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