Re: "a reference to"
Re: "a reference to"
- Subject: Re: "a reference to"
- From: has <email@hidden>
- Date: Sat, 26 Jan 2008 00:55:25 +0000
On 25 Jan 2008, at 23:01, Scott Babcock wrote:
The [ASLG] section on the 'a reference to' operator indicates that
AppleScript's 'reference' type has a 'contents' property.
Yes, and it also states that it has a [class] property whose value
is always 'reference'. The property-vs.-operator question can't even
be resolved by looking at the 'aeut' resource in AppleScript.rsrc,
since it shows neither a [contents] property nor a 'contents of'
operator.
There is a 'contents' property under the 'selection-object' class.
It's a property name, not an operator. ASLG confirms this,
AppleScript's aeut confirms this; the AppleScript compiler's pretty
printer confirms this.
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. To use an old joke:
Patient: Doctor, it hurts when I do this...
Doctor: Then stop doing it.
has (off to write some CS3 scripts from the refreshing [relative]
sanity of Python and Ruby...)
--
http://appscript.sourceforge.net
http://rb-appscript.rubyforge.org
_______________________________________________
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