I am new to TextMate and have spent a good chunk of the day getting familiar with its automation capabilities and trying to do the following. I would be grateful is someone could point me in the right direction or tell me it's not possible.

I read XML files from a particular schema on an ongoing basis.  There's a lot of clutter that I manage by folding certain tags.  There are about half a dozen tag names to be folded and each occurs several times (the number of times varies), so it is a pain to have to do this by hand every time.

I was hoping I could write a command or macro or something that would automate the process for me.  I got as far as creating a macro to search for one of the tags and fold it.  But now I want to do that for all occurrences of that tag and the other tags on my "fold list".  Can't figure it out.

Is there a way?