I have posted instructions and a screenshot on my blog describing how to make an Erlang Build Dialog: http://concise-software.blogspot.com/2008/04/textmate-erlang-build-dialog.ht...
This enables a build-on-save operation for Erlang projects. When you save it automatically brings up a list of errors and warnings with icons and links if there are any. If there are no errors or warnings no dialog is shown.