<span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse">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.<div>

<br></div><div>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.</div>

<div><br></div><div>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.</div>

<div><br></div><div>Is there a way?</div><div><br></div><font color="#888888"><div>Bruce</div></font></span>