Thanks for sharing, Dan.
Just to make sure I understand the purpose of this script, is it the following?
Thanks.
For more information, see the wiki Searching the Forum for Answers section.