Using textmate on remote file? possible?

i found this script searching

http://snippets.dzone.com/posts/show/510

is this the way to do such thing? can i open up whole directories?

thanks/