in reply to When my script doesn't work, I ...

Rewrite the entire thing from scratch.