• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Wind Chill (tell block issue)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Hiding OE's window
  • Next by Date: Re: Damn send button / Wind chill
  • Previous by thread: Re: Application tell nesting (was: Damn send button/Wind chill)
  • Next by thread: Now is: Finder tell block
  • Index(es):
    • Date
    • Thread