RE: "a reference to"
RE: "a reference to"
- Subject: RE: "a reference to"
- From: Scott Babcock <email@hidden>
- Date: Mon, 28 Jan 2008 13:42:40 -0800
- Acceptlanguage: en-US
- Thread-topic: "a reference to"
> There is a 'contents' property under the 'selection-object' class.
How does this apply to the 'reference' class? I can write code that refers to any random property and the compiler will happily convert it to an Apple Event code. That says nothing about the nature of the structure or implementation of the underlying terminology.
> It's a property name, not an operator. ASLG confirms this, AppleScript's aeut confirms this; the AppleScript compiler's pretty printer confirms this.
The 'aeut' resource shows that the 'reference' class is completely devoid of properties. Should I therefore not use the [contents] property with the 'reference' class? I view the absence of "contents" under the 'reference' class as an indication that this language element is implemented through special-case handling, which would explain its enigmatic nature.
> Using it where and how the ASLG says it should be used results in the behaviour described by the ASLG. Using it in ways not documented by the ASLG results in undocumented behaviour.
The ASLG clearly documents a 'contents of' operator under "Repeat With (loopVariable) In (list)". The fact that no 'contents of' operator appears in the "Operations" section doesn't prove that 'contents of' is never treated as an operator. It leads to one of two conclusions:
1. 'contents of' is an operator, but it was inadvertently omitted from the "Operations" section; or
2. 'contents of' is not an operator, and the reference to it as such under "Repeat With (loopVariable) In (list)" is erroneous.
You clearly side with the latter conclusion. Others hold the former to be true. Only someone with access to the source for the AppleScript scripting component would be able to answer this question conclusively.
Whatever the case, this is a completely semantic argument. The end result is the same whether it's a property, an operator, or both...
Wife: New Shimmer is a floor wax!
Husband: No, New Shimmer is a dessert topping!
Wife: It's a floor wax!
Husband: It's a dessert topping!
Wife: It's a floor wax, I'm telling you!
Husband: It's a dessert topping, you cow!
Spokesman: Hey, hey, hey, calm down, you two. New Shimmer is both a floor wax *and* a dessert topping!
_______________________________________________
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