Hi,
don't know if someone noticed my previous post, but here's now an updated version of the script (see attachment)
Comments welcome.
/Mikael