Go to this layout
Open Layout Setup by clicking the pencil icon near top left corner of the window near the layout drop down.
Click to view the script triggers that can be set for this layout.
Best guess is that you have the OnLayoutExit trigger set to run a script that no longer exists.
I get this error message and as far as I can tell there are NO scripts anywhere, and don't know what kicks this off immediately when I open the file.
I have a contact database with over 600 people and it works fine. I also have a Magicard Enduro ID card printer and the software we used to have (on XP) was OK but for some reason new software got foisted off on us — maybe due to the Windoze 7 "upgrade". It's horrible and the user interface is impenetrable, and it crashes. So I'm designing ID cards with FileMaker (Pro Advanced 13) and I made a copy of the database and cut out most of the fields and buttons, and deleted 3/4 of the records. And I don't recall seeing this message at first. I must have deleted one more object that pushed it over the edge. I have no clue how to find what I suppose is a script trigger.
(Anybody got major clues about ID cards, while we're here at the bar?)
This is not a script, but a script trigger. You can delete all scripts from your file and still have script triggers set for different parts of your file and layouts. In fact, deleting all scripts would be one way to produce this situation.
I cannot tell from your post whether you checked for script triggers or not. OnLayoutEnter is one possibility, but if you see this when you change from layout mode to browse mode, this can also be due to changing window modes or from OnRecordLoad. All of these triggers are set up in the same dialog so you'd need to check to see if any check boxes are selected here.
If that's not it, check and see if your cursor is inside a field. A field can be set up with the onObjectEnter trigger as can portals and other layout objects. It could be that entering Browse mode is automatically putting the focus into a layout object with such a trigger and this trigger is attempting to perform a script now deleted.
As for ID cards, I recommend that you start a new post for that and include quite a bit more detail so that others have a better idea what it is you want to know.
It's the very first thing; it happens right away, well before the window is open.
To repeat: have you checked for script triggers set to run scripts that no longer exist?
Script triggers are found in three general locations:
Layout Setup for each layout in your file
Right click any layout object on any layout in your file and select "Script Triggers".
I'd start with File Options and move to layout setup of the layout that first appears after you dismiss this message.
Bug if you have FileMaker Advanced, you can try a simpler method to identify this: Open fileMaker advanced without opening this file, enable the script debugger and then open your file in the fashion that causes this message to appear. I believe that you'll see the script trigger pop up in the debugger and then you'll know which one is causing the trouble.
But that assumes a version of FileMaker that you may not have.
File Options - bingo.