Hey Doug,
Thanks for the question. I don't have a script on hand to do this. But it seems like it would be pretty easy to do with python.
Check out this learning material.
Please let me know if this helps.
Kind Regards,
Zach Sylvester
Software Developer
SmarterTools Inc.
www.smartertools.com