Handling a shutDownRequest message lets us interrupt the process of Quitting
Metacard in order to make sure things are properly saved. But on my Mac OS9.2
it does not appear that this message is generated if the user is in the Finder
and chooses Shut Down while Metacard is running in the
: http://www.sonsothunder.com/
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, December 12, 2002 8:59 AM
Subject: Handling a system shutdown
Handling a shutDownRequest message lets us interrupt the process of
Quitting
Metacard in order to make sure things
on 12/12/02 Ken Ray answered my question about how to intercept a system
shutdown:
You could try trapping for the quit appleevent (which I think is
aevtquit or reqdquit), as in:
on appleEvent pClass,pID
if pClass pID = aevtquit then
-- your code here
else
pass appleEvent
end if