Have you tried doing manually what your script does to verify that what you're trying to do works at all? That may give you a clue as to what is failing.
Revolution. Today, 3 O'Clock. Meet behind the monkey bars.
I would love to change the world, but they won't give me the source code