Nice idea on the script Dani_l11, and I look forward to it when it is done an bug free..
on a side note:
I have to agree with Jethro_ about taking your time on a script before submitting it. There is no rush on posting any snippet/script. Just take your time on it, and do the best you can on error/bug checking before submitting. That way you will have something worth submitting, and not something that has a lot of errors/bugs.