Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!sunybcs!sbcs!sbmiclr!vallon From: vallon@sbmiclr.CS.SunySB.EDU (Justin Vallon) Newsgroups: comp.sys.mac.programmer Subject: Re: Shutdown sequence question Keywords: shutdown manager finder quit Message-ID: <4193@sbcs.sunysb.edu> Date: 7 Dec 89 22:46:50 GMT References: <1989Dec7.083540.3798@agate.berkeley.edu> Sender: news@sbcs.sunysb.edu Reply-To: vallon@sbmiclr.CS.SunySB.EDU (Justin Vallon) Lines: 33 In article <1989Dec7.083540.3798@agate.berkeley.edu>, rgm@sandstorm.Berkeley.EDU (Robert Menke) writes: > This is beginning to bother me. How does the Finder (under > MultiFinder) send messages to each of the open applications to close > when the user selects "Shut Down" from the "Special" menu? ... > [MPW's "shutdown" command fails to notify applications] Shut Down from the Finder does not need to be patched. Finder (when running in MultiFinder mode) "knows" that it has to notify open applications about a pending restart/shutdown. What the Finder does is it looks for the "Quit" item in the "File" menu of all open applications and calls it (it can do that, you know... it's MultiFinder). [I also remember that the defaults for these strings can be overrided by some resource] When all open applications are closed (you can cancel a shutdown/restart by clicking on the Cancel button in the "Save changes to ^0?" alert), the Finder then invokes the Restart/Shutdown trap. (All from memory, but I've heard this here before). So, how to fix it? If you have a Macro program (MacroMaker :-(, QuicKeys, etc), create a Macro that clicks on the trash-can (to switch to the Finder layer), and then calls menu item "Special"/"Shutdown". The only problem with the macro is that you can't hide the trash-can, which frequently happens. I can't think of anything else off the top of my head. Maybe somebody else can come up with a solution. Maybe a Switch-To-Finder FKEY? > "It is a pity that you Autobots die so | Robert Menke > easily..." | rgm@OCF.berkeley.edu > -Galvatron | Robert.Menke@bmug.fidonet.org > TEAM CS -- Making Tomorrow's Mistakes Today! -Justin vallon@sbcs.sunysb.edu