You should probably post the script itself and the udev rule along with an explanation of what you are actually trying to acheive (just in case there is a better method) but this thread seems to indicate that the location of the script might be important: