Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 8093 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Okay, based on the STARTUP thread, I have a Begin file that takes care of opening everything properly. If you try to open any other file, you just get a message telling you to use Begin. Works Great! (thanks again)

Given that, the only way to get a file opened improperly is to close it... then it may get auto-opened without the startup script. Soooo, the obvious answer is to add SHUTDOWN scripts to ensure if you close one file, you close them all. Sounds easy.

All my files have a script Shutdown that simply goes into Browse Mode and then calls Close("Begin"). And then Begin has a Shutdown that calls Close on every file that it Opens in its Startup script (in the opposite order). And of course, I've made the setting in Doc Preferences so that it gets invoked.

The resultant behavior is bizarre. Some files it never seems to close. Other files it closes depending upon which file I press the close button on. It never closes all the files. I can see why so many files I pick up use Quit Application so freely.

Can anyone suggest what I might be doing wrong?

Or is it just not a reliable mechanism, and I should just change all the Shutdown scripts to simply do Quit Application?

Thanks.

Posted

BTW, I just posted the problem app I was describing to Sample Files forum... its the next version of my Relational Template. These Shutdown scripts are the one remaining known problem with the template.

Posted

What I do with set ups bigger then one file is to have a menu that does all the opening and closing of the files at startup and shutdown. Never had a problem you like have.

One thing you remember is that a shutdown script is already called by they time shutdown script is run, therefore it doesn't need to close itself.

This topic is 8093 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.