Re: Damn send button / Wind chill
Re: Damn send button / Wind chill
- Subject: Re: Damn send button / Wind chill
- From: Ed Stockly <email@hidden>
- Date: Sun, 03 Mar 2002 11:21:36 -0800
>
>> You should avoid putting one tell block inside another, which is similarly
>
>> wasteful, sluggish and occasionally worse
>
> That suggest to me that nesting tells to applications is no problem at all.
>
> Am I missing something?
>
>
Just a couple of points. Including nested tells is part of the design of
AppleScript.
I believe here is nothing "wrong, sluggish or worse" with this construct:
tell application "Finder"
do some stuff
tell application "Quark"
do more stuff
end tell
end tell
In this example the commands sent to Quark go directly to Quark and it works
exactly as if it were not in a finder tell block at all.
Not only is there nothing wrong with this I'd say it's a fine use of the
language and should be encouraged.
The only cases similar to this where there have been problems are with
terminology conflicts between one or two OSAX and the finder. These
problems have all been easily identifiable and easy to work around.
AppleScript is designed to work this way and it works the way it was
designed.
I don't believe users should be discouraged from using the language as it
was desinged and intedended without good reason, and I just don't see any
good reason not to use nested tell application blocks.
ES
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.