I just wrote my first TextMate custom command, for compiling erlang source code and showing hyperlinked errors (if there are any) in a HTML popup.
More information, download and screencast at:
http://www.rsaccon.com/2007/11/easy-erlang-compiling-with-textmate.html
As scripting language for the command I am using Erlang escript.
regards