Mass Weighted RMSD

I was wondering if there is a script available for Mass-Weighted RMSD calculations? I am aware of Forcite's RMSD calculator, but I don't think this can be modified to be mass-weighted.

Kind Regards,