View Single Post
How fortuitous! I wrote a script to do exactly this the other night. I don't have access to it at the moment, but it should be almost entirely reusable for your purposes. Sorry for the tease, but I'll post it later this evening or tomorrow once I've got it in front of me again.