I believe KBrown has the answer to that question, as one of he´s scripts does precisely that. Check the download page.