Re: Now is: Finder tell block
Re: Now is: Finder tell block
- Subject: Re: Now is: Finder tell block
- From: JollyRoger <email@hidden>
- Date: Sun, 03 Mar 2002 19:15:46 -0600
On 3/3/2002 12:45 PM, "Mr Tea" <email@hidden> wrote:
>
This from JollyRoger - dated 3/3/02 06:02 pm:
>
>
> I think it is important to note that you don't *have* to use a tell block.
>
>
>
> You can do this instead:
>
>
>
> tell application "Finder" to do something
>
>
Isn't that just an economical way to display this basic 'one command' tell
>
block:
>
>
tell application "Finder"
>
do something
>
end tell
>
>
... same as 'if tea is ready then pour' is an economical way to display:
>
>
if tea is ready then
>
pour
>
end if
>
>
?
>
>
Or did I miss something important?
Only if you didn't read the rest of my message. The rest of my message
talked about how tell block abuse can cause problems for script writers down
the line that are hard to diagnose in most cases.
It is very easy for people new to AppleScript to get into the bad habit of
enclosing everything in tell blocks for convenience sake without
understanding the implications. This is what I am trying to help avoid.
If people get into the better habit of using the one-liner-style of telling,
they "automatically" avoid these obscure, hard to diagnose problems.
JR
_______________________________________________
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.