Handling a system shutdown

David Epstein depstein at att.net
Thu Dec 12 22:10:01 EST 2002


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
end appleEvent

This does the job.  Thank you!  Can something like this be done in Windows?

David Epstein

PS:  Apologies to all for having accidentally replicated the digest in my
original query.




More information about the metacard mailing list