For Textmate there is a command line tool, mate, that can be installed. Once installed you just use mate <file>
to open that file in text mate.
For application that don't have a command line tool, you can use the open
command with the -a
flag and the name of the application. i.e.
open -a iTunes
This also works for TextMate:
open -a "TextMate 2"