Well, if you knew how to script, which I assume you did because you posted in Scripting Help, then his post would help you.
If you do now know how to code this part yourself with ideas provided for you from others, then you should've posted in Suggestions/Requests.