On Mac OS X over time I get multiple instances of TextMate running. Is there any way to prevent this?
edit: i'm launching from the command line alias, and from the finder. yes, i only have one copy installed on the hard drive.
More Details:
Recreation: Textmate is open, I've launched it via clicking on a file in the finder. Then I run this script to open my hosts file with textmate:
#!/bin/bash `/Applications/TextMate.app/Contents/MacOS/TextMate /etc/hosts`
After that I have two instances open. They both show up in task switcher, and they both show up in the dock. When I go to the dock and do "show in finder" they both point to TextMate.app in the applications folder. and, @romainl, yes, there are two instances in the activity monitor.
Is that script the culprit?

options->show in finder, just as a paranoia check. Are you opening protected files? Its hard to tell you how to prevent it when you haven't given us enough information to identify the cause...we need to start there. – peelman Mar 10 '11 at 3:12mateutility and reinstall it again from TextMate » Help » Terminal Usage… to make sure it's up to date and created using the supported way. – Daniel Beck Mar 10 '11 at 3:29