Thanks for posting!
If you're using Advanced, then fixing this should be pretty easy. Open FileMaker without opening the database. Then, head to the Tools menu and start the Script Debugger. While the Script Debugger is open, open your file. It should catch the script and give you the opportunity to kill it by clicking the red X. From there, you can fix the troublesome script.
thank you it worked