I've modified a shell script written for SubEthaEdit that allows you to open or create files from the command line, and also to pipe text into TextMate.
If anyone's interested, it can be downloaded from:
http://www.ini.unizh.ch/~awe/Code/TM_clTool.tgz
Andrew