Macro to add Front, Top and Right Mate between 2 preselected components?

I haven't learned to write these yet...I was just thinking, a macro that adds front-to-front, top-to-top and right-to-right mates of two pre-selected components would be a handy dandy tool to have.  Anyone know if such a thing exists somewhere? 

SolidworksApi/macros