Newbies Factory Pilot Posted January 9, 2002 Newbies Posted January 9, 2002 Is there a way to close related files only if they're hidden? I've got seven database files that are related in various ways. If I close one of the main files, say file A, I want it to close the rest of the files so they're not left hanging open in the background. However, if I also have one of the other main files, say file B, open and _not_ hidden, I'd like that to stay open when I close file A and close any of the other 5 files that are not hidden.
Fitch Posted February 5, 2002 Posted February 5, 2002 Tricky one! Doesn't look like FileMaker provides a Status function for this, but you can do it with an AppleScript. tell application "FileMaker Pro" if exists menu "(FileName)" of menu "Window" close database "FileName" end if end tell
Vaughan Posted February 5, 2002 Posted February 5, 2002 Define a script in the main database: Close (related file a) Close (related file Close (related file c) Close (related file d) etc In the main database, go to the Document Preferences and set this as a shutdown script. now when you close the main database all the related databases in the script will also be closed.
Fitch Posted February 5, 2002 Posted February 5, 2002 Vaughan, he only wants to close them if they're hidden!
Recommended Posts
This topic is 8327 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