How can I prevent a user from Exiting Filemaker from the FILE MENU (Cntl +
Q) or clicking on the close icon on the top right of the screen?
Using Filemaker Pro 8 v2 for WIN XP.
Reason - a special script will not run unless they click a QUIT button ...
but tryting to get them to remember to do it is killing me b/cthe script
will not run when they exit "illegally" !!!!!!!
Any HELP in this matter would be greatly appreciated.
AL
|
|
0
|
|
|
|
Reply
|
AL
|
2/2/2006 6:17:18 AM |
|
This can be done BUT it's a lot of work.
Basically while you're in Pause / Resume mode with Allow User Abort Off
the user can NOT close the window nor use the menu File -> Quit.
However, this means none of your scripts can have a Halt script in
them, your on open script loops in pause / resume mode, you need to be
very careful with error trapping, the users can not use any of the menu
commands, they can not open or create other FM files, and your very
likely to get yourself stuck in an endless loop.
My advice is to create a backup before attempting this.
|
|
0
|
|
|
|
Reply
|
FP
|
2/2/2006 6:29:21 AM
|
|
Unless I am mistaken, the easy way to do this is to make a script called
'Close' as you have one called 'Open', in which you Execute your script
'Quit'.
Now, in the File Menu on the top you have 'FileOptions' in which you can
set the script to be triggered when Opening the file and one for Closing
the file, whatever way the user user Opens or Closes the file.
Remi-Noel
"AL Lawrance" <ajlawrance@shaw.ca> a �crit dans le message de news:
OthEf.415499$2k.259252@pd7tw1no...
> How can I prevent a user from Exiting Filemaker from the FILE MENU
> (Cntl + Q) or clicking on the close icon on the top right of the
> screen?
>
> Using Filemaker Pro 8 v2 for WIN XP.
>
> Reason - a special script will not run unless they click a QUIT button
> ... but tryting to get them to remember to do it is killing me b/cthe
> script will not run when they exit "illegally" !!!!!!!
>
> Any HELP in this matter would be greatly appreciated.
>
> AL
>
>
|
|
0
|
|
|
|
Reply
|
Remi
|
2/2/2006 10:44:22 AM
|
|
Agreed.
If you define a script to do everything you want done on closing the
file, it won't make any difference how the user exits.
Matt
Remi-Noel Menegaux wrote:
> Unless I am mistaken, the easy way to do this is to make a script
> called 'Close' as you have one called 'Open', in which you Execute
> your script 'Quit'. Now, in the File Menu on the top you have
> 'FileOptions' in which you can set the script to be triggered when
> Opening the file and one for Closing the file, whatever way the user
> user Opens or Closes the file. Remi-Noel
>
> "AL Lawrance" <ajlawrance@shaw.ca> a icrit dans le message de news:
> OthEf.415499$2k.259252@pd7tw1no...
> > How can I prevent a user from Exiting Filemaker from the FILE MENU
> > (Cntl + Q) or clicking on the close icon on the top right of the
> > screen?
> >
> > Using Filemaker Pro 8 v2 for WIN XP.
> >
> > Reason - a special script will not run unless they click a QUIT
> > button ... but tryting to get them to remember to do it is killing
> > me b/cthe script will not run when they exit "illegally" !!!!!!!
> >
> > Any HELP in this matter would be greatly appreciated.
> >
> > AL
> >
> >
--
|
|
0
|
|
|
|
Reply
|
Matt
|
2/2/2006 1:42:06 PM
|
|
The Advanced (Developer) version of FM has provision for customized
menus (ie should be able to remove Quit from File menu) and also "kiosk
mode" runtime packages that prevent access to menus.
Also there may be a plug-in that allows you to execute script when FM
quits. Check the plug-in links at
http://www4.tpgi.com.au/users/aoaug/mac_osx.html#filemaker
Michael Paine
AL Lawrance wrote:
> How can I prevent a user from Exiting Filemaker from the FILE MENU (Cntl +
> Q) or clicking on the close icon on the top right of the screen?
>
> Using Filemaker Pro 8 v2 for WIN XP.
>
> Reason - a special script will not run unless they click a QUIT button ...
> but tryting to get them to remember to do it is killing me b/cthe script
> will not run when they exit "illegally" !!!!!!!
>
> Any HELP in this matter would be greatly appreciated.
>
> AL
>
>
|
|
0
|
|
|
|
Reply
|
Michael
|
2/2/2006 7:51:02 PM
|
|
or there is the close file tip that Remi-Noel suggested!
MP
Michael Paine wrote:
> The Advanced (Developer) version of FM has provision for customized
> menus (ie should be able to remove Quit from File menu) and also "kiosk
> mode" runtime packages that prevent access to menus.
>
> Also there may be a plug-in that allows you to execute script when FM
> quits. Check the plug-in links at
> http://www4.tpgi.com.au/users/aoaug/mac_osx.html#filemaker
>
> Michael Paine
>
> AL Lawrance wrote:
>
>> How can I prevent a user from Exiting Filemaker from the FILE MENU
>> (Cntl + Q) or clicking on the close icon on the top right of the screen?
>>
>> Using Filemaker Pro 8 v2 for WIN XP.
>>
>> Reason - a special script will not run unless they click a QUIT button
>> ... but tryting to get them to remember to do it is killing me b/cthe
>> script will not run when they exit "illegally" !!!!!!!
>>
>> Any HELP in this matter would be greatly appreciated.
>>
>> AL
>>
>>
|
|
0
|
|
|
|
Reply
|
Michael
|
2/2/2006 7:53:52 PM
|
|
I must disagree.
If the user Closes the Window the Close Script does not execute that is
selected in FileOptions.
If the User EXITS the application by CNTRL + Q or EXIT from the File Menu
the Close Script does not execute that is selected in FileOptions.
At least that is what has been happening with me.
AL
"Matt Wills" <Im@Witz.End> wrote in message
news:O_nEf.3334$%e3.2800@trndny04...
> Agreed.
>
> If you define a script to do everything you want done on closing the
> file, it won't make any difference how the user exits.
>
> Matt
>
> Remi-Noel Menegaux wrote:
>
>> Unless I am mistaken, the easy way to do this is to make a script
>> called 'Close' as you have one called 'Open', in which you Execute
>> your script 'Quit'. Now, in the File Menu on the top you have
>> 'FileOptions' in which you can set the script to be triggered when
>> Opening the file and one for Closing the file, whatever way the user
>> user Opens or Closes the file. Remi-Noel
>>
>> "AL Lawrance" <ajlawrance@shaw.ca> a icrit dans le message de news:
>> OthEf.415499$2k.259252@pd7tw1no...
>> > How can I prevent a user from Exiting Filemaker from the FILE MENU
>> > (Cntl + Q) or clicking on the close icon on the top right of the
>> > screen?
>> >
>> > Using Filemaker Pro 8 v2 for WIN XP.
>> >
>> > Reason - a special script will not run unless they click a QUIT
>> > button ... but tryting to get them to remember to do it is killing
>> > me b/cthe script will not run when they exit "illegally" !!!!!!!
>> >
>> > Any HELP in this matter would be greatly appreciated.
>> >
>> > AL
>> >
>> >
>
>
>
> --
>
|
|
0
|
|
|
|
Reply
|
AL
|
2/2/2006 11:38:09 PM
|
|
I must disagree.
If the user Closes the Window the Close Script does not execute that is
selected in FileOptions.
If the User EXITS the application by CNTRL + Q or EXIT from the File Menu
the Close Script does not execute that is selected in FileOptions.
At least that is what has been happening with me.
AL
"Remi-Noel Menegaux" <rnmenegaux@free.fr> wrote in message
news:43e1e280$0$24214$636a15ce@news.free.fr...
> Unless I am mistaken, the easy way to do this is to make a script called
> 'Close' as you have one called 'Open', in which you Execute your script
> 'Quit'.
> Now, in the File Menu on the top you have 'FileOptions' in which you can
> set the script to be triggered when Opening the file and one for Closing
> the file, whatever way the user user Opens or Closes the file.
> Remi-Noel
>
> "AL Lawrance" <ajlawrance@shaw.ca> a �crit dans le message de news:
> OthEf.415499$2k.259252@pd7tw1no...
>> How can I prevent a user from Exiting Filemaker from the FILE MENU (Cntl
>> + Q) or clicking on the close icon on the top right of the screen?
>>
>> Using Filemaker Pro 8 v2 for WIN XP.
>>
>> Reason - a special script will not run unless they click a QUIT button
>> ... but tryting to get them to remember to do it is killing me b/cthe
>> script will not run when they exit "illegally" !!!!!!!
>>
>> Any HELP in this matter would be greatly appreciated.
>>
>> AL
>>
>>
>
>
|
|
0
|
|
|
|
Reply
|
AL
|
2/2/2006 11:39:00 PM
|
|
Hello,
Specifying a closing script in file options always executes no matter how
you exit
unless of course you pull out the power cable or control alt delete the
application.
To demonstrate:
Create an empty file and create one script that shows a custom dialog.
Now assign that script in file options to execute on close.
There is no way you can close this file without that dialog popping up.
regards,
Pierre Lessard
"AL Lawrance" <ajlawrance@shaw.ca> wrote in message
news:OthEf.415499$2k.259252@pd7tw1no...
> How can I prevent a user from Exiting Filemaker from the FILE MENU (Cntl +
> Q) or clicking on the close icon on the top right of the screen?
>
> Using Filemaker Pro 8 v2 for WIN XP.
>
> Reason - a special script will not run unless they click a QUIT button ...
> but tryting to get them to remember to do it is killing me b/cthe script
> will not run when they exit "illegally" !!!!!!!
>
> Any HELP in this matter would be greatly appreciated.
>
> AL
>
>
|
|
0
|
|
|
|
Reply
|
P
|
2/3/2006 1:47:54 AM
|
|
In article <BJwEf.539035$ki.495321@pd7tw2no>, ajlawrance@shaw.ca says...
> I must disagree.
>
> If the user Closes the Window the Close Script does not execute that is
> selected in FileOptions.
>
> If the User EXITS the application by CNTRL + Q or EXIT from the File Menu
> the Close Script does not execute that is selected in FileOptions.
>
> At least that is what has been happening with me.
The close script runs when the database file is closed, not when the
window is closed.
Closing the "Window" in Filemaker 7 or 8 may not close the database. It
may just close the window.
Since you mention Ctrl-Q, not Apple-Q I'll assume your on windows. In
which case after closing your window, look under the "Window" menu,
where it says "Show Window", its probable that the file you are working
with is still listed there with parenthesis around it. Meaning that its
still open. (Filemaker doesn't close files that are referred to in
relationships of other open files.)
The close script will not be executed until the database file is
actually closed.
So, in your case, the close script doesn't run immediately when you
close the window, because the file is still open... but it will
eventually run when the file actually does close.
-regards,
Dave
|
|
0
|
|
|
|
Reply
|
42
|
2/3/2006 4:03:33 AM
|
|
|
9 Replies
253 Views
(page loaded in 0.136 seconds)
|