Re: Finder Crash
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