Question marked as
Best reply
You forgot to put an on run line at the start of the script, so it's blowing a fuse when it gets to the end run line at the end of the script. either add the 'on run' or delete the 'end run'.