Hello Steffen, perhaps this posting may help you a bit. I also struggled with these scripts a while ago.