Re: Wind Chill (tell block issue)
Re: Wind Chill (tell block issue)
- Subject: Re: Wind Chill (tell block issue)
- From: has <email@hidden>
- Date: Sun, 3 Mar 2002 15:45:02 +0000
en Grimm wrote:
>
>> PS - I'm still waiting to hear from Paul why wrapping the script in a
>
>>Finder
>
>> Tell block isn't good technique...
>
>
In my experience, it has been a very bad idea to wrap *anything* in a tell
>
block if not necessary. I got timeout errors, the ("doofus" doesn't
>
understand "gallant" command) class of errors, and all kinds of misc.
>
headaches
Definitely. And Finder tell blocks are particularly fun: one script I wrote
would repeatedly crash the Finder whenever it was run. Eventually I worked
out the problem: rather than wrapping the Finder tell block around the one
line of code that actually needed it, I'd put it around everything.
Now, this particular script had rather heavy RAM usage (it read entire
postscript files into memory for misc. mangling). I'd assigned about 20MB
to the applet to deal with this, but because the script was running in the
Finder's context, not the applet's, it was trying to grab those megabytes
from the Finder - which is the one program you _really_ don't want to upset
this way.
Run - FOOM! Run - FOOM! Run - FOOM! Run - FOOM! Run - FOOM!
There was much slapping of foreheads that day.
has
_______________________________________________
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.