hennaquick Posted May 16, 2006 Posted May 16, 2006 I created a script that executes when the file closes. It is assigned in the File Options menu item. These script steps cause the script itself to repeat (Close Window)..if it's the last window open (Exit Application) (Close File) However, if I try (Exit Script) or (Halt Script)the file won't close. QUESTION: What script steps can close the file without re-triggering the script that executes when the file is closing? I've attached the script that executes when the file is closing [color:green]g_LogOff and the script it calls, [color:orange]g_BackupCurrentFile.[/b] 1147816147-g_LogOff.txt 1147816157-g_BackupCurrentFile.txt
Vaughan Posted May 17, 2006 Posted May 17, 2006 There is no need to trap whether the window is the last one open: the shutdown script only runs if it's the last window open (for that file).
hennaquick Posted May 17, 2006 Author Posted May 17, 2006 I didn't try to trap the last window...i was just noting what will trigger the file closing script.
mcyrulik Posted June 28, 2006 Posted June 28, 2006 With the Close file script specified in the File options, I don't think there is a way to halt that once it is fired. You could try a quit button that runs that script instead of letting filemaker trigger it. I don't know if there is a way to keep a user from using the file menu to close the fiel though.
Recommended Posts
This topic is 6725 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now