Edited by author 11-04-2002 01:48 PM
Chris: I don't think there's a way to get the Terminal to reliably close the window. (At least, I haven't found a way.) Instead, you might want to wrap up your script with a Cocoa frontend, avoiding Terminal.app altogether; there are a few options available (I found
DropScript to be straightforward; the same group at U. Michigan that makes
Fugu also makes something called
iHook which is a really sophisticated shell script wrapper).
ggirton: To make a shell script executable, you need to set the executable bit on the file. From a Terminal, you'll want to do the following:
chmod +x my-shell-script