• 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: Finder Crash
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finder Crash


  • Subject: Re: Finder Crash
  • From: has <email@hidden>
  • Date: Fri, 25 Jan 2002 00:43:13 +0000

Ed Wright wrote:

>However, it's also possible your script does something odd to the system
>which causes the crash. Caveat Emptor.

Here's a fine (if slightly embarrassing) example of just that sort of thing:

I once had a droplet that caused regular Finder crashes under 8.1. Drove me
nuts, till I worked out why...

The problem? The script would read a huge text file into memory (a big eps
that got pounded with regexes to convert greyscale tints to spot colour and
saved back out). Clumsy, sure - but not a real problem since I just
allocate plenty of RAM to the applet, right?

Except... I'd been rather dumb and wrapped a 'tell application "Finder"'
block around the *entire* script, instead of just around the particular bit
of code it actually dealt with (a file type check). So when that huge text
file got read into memory further on in the code... well, guess whose
memory? Bam!

Moved the tell block, no more problems. Moral: watch whose toes you tread
on, especially the Finder's. Because it has corns. Or something.


has


  • Prev by Date: Re: Applescript editor recommendations?
  • Next by Date: boldly creating files where no file has been created before (or not...)
  • Previous by thread: RE: Finder Crash
  • Next by thread: Re: Type -110 Errors?
  • Index(es):
    • Date
    • Thread