Is there a way to close a Terminal window from within a shell script? I have a .command file that should just get out of the way once it\'s done.
I find the best solution for this is to use Automator to create a true OSX application which will work the same way regardless of how your system is configured. You can have the Automator run your shell script, or you can embed the shell script itself in Automator.
Here is how you do it: