Do you have another script in this file?
Create a new FileMaker file and Use Perform Script to perform some script in the file that is "safe" (won't close the window or trip the script trigger). Best would be one that goes to some other layout.
Perform this new script in your new file to perform the safe script in your file.
Alternatively, If you have FileMaker Advanced, you can launch fileMaker, enable the script debugger and then open your file. The script will pop up in the debugger and you can edit the script right from the debugger to fix the problem.
I think I fixed it.
What I did:
Created a new Filemaker File,
Added a table from your file in my relationship graph as an external source.
Make a layout based on that Table Occurrence.
Then I made a script with two steps:
Perform Script: A script from your file.
Go To Layout: The Layout based on the external data source.
Then I opened your file and it opened without running the script.
I then found out what script had the close window step and deleted that step.
Here's your file:
Thanks a lot, i tried it myself and i got it to work. I tried something like that, but i couldn't get it to work. Then after reading your thing i tried again and now it worked. thanks so much!