well mac would come with some plain text editor right? Like notepad mac version or something?
Then just write the code (use the search button for that, i cbf explaining it all. I think there was a tut somewhere) save into toribash/data/mod/ with the extension .tbm.