Yeah, I think Jim is correct. Instead of setting the script, copy it to the clipboard, then create a new button and try pasting it in and see if it compiles.