and here's the crappy script i just wrote with a little of google's help...
http://pastebin.coconut.se/?id=4…