Re: Inheritance and Loaded Libraries (solved)
Re: Inheritance and Loaded Libraries (solved)
- Subject: Re: Inheritance and Loaded Libraries (solved)
- From: has <email@hidden>
- Date: Wed, 3 Nov 2004 21:36:09 +0000
Paul Berkowitz wrote:
What happens with
c() of (get b of (get a of application "ScriptServer"))
That sends a 'get [property] a' event to ScriptServer which returns a
copy of the script object stored in property 'a'. The rest of the
expression is evaluated locally. (Errors about reference passing
aside, I described this option in an earlier mail:
<http://lists.apple.com/archives/applescript-users/2004//Oct/msg01010.html>)
As you know, and as Axel has already pointed out, we often need the explicit
'get' to make compound 'of' statements work. Does it work here?
The 'get' keyword has two very different meanings in AppleScript.
First, it's used to evaluate an AppleScript expression; useful in
situations where implicit evaluation occurs later than you want.
Second, it's used to send a 'get' event to an Apple event-aware
application. Your example above uses 'get' both ways, though only the
second occurrence has a significant effect.
Thanks for delving into the inner workings. Have you also seen Scott
Babcock's message?
Yeah, it was stripping his code down to make sense of it that made me
realise I was wrong about the reference-passing issue. Obviously, I
wouldn't recommend kludging your modules' design the way Scott showed
- like I've said elsewhere, kludges atop bugs may occasionally be
unavoidable when there's absolutely no other way to make something
work, but in this case there's other, much more sensible ways to
achieve the same goals.
has
--
http://freespace.virgin.net/hamish.sanderson/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden