MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Execute on Exit?

  • To: mathgroup at
  • Subject: [mg107413] Re: Execute on Exit?
  • From: Chris Degnen <degnen at>
  • Date: Fri, 12 Feb 2010 04:40:35 -0500 (EST)
  • References: <hktr79$kqm$> <hl0lco$r72$>


Actually I got most of the way there.  I just added


to the end of the function I wanted to run, then added
a menu bar item to run the function.  E.g. to


I added:

KernelExecute[Get["CustomFunction`"]], MenuEvaluator->Automatic]

I would like to place the menu item over on the right, under the
window-close button on the frame.

I tried Alignment->Right but it won't budge. Any suggestions?

Szabolcs Horv=E1t wrote:
> Chris Degnen wrote:
> > Hi. Is it possible to run a command upon system close?
> > The 'close' menu binding is customisable but doesn't seem to
> > accept a sequence of tokens, e.g. Item["E&xit",
> > KernelExecute[CustomFunction[]]; "FrontEndQuit"]
> > The top-right close button isn't affected by the menu binding though.
> $Epilog is evaluated on kernel quit.  I don't think there is anything
> similar for the front end quit.

  • Prev by Date: Re: Extract parameters from FIndFit output
  • Next by Date: Re: download data from database
  • Previous by thread: Re: Execute on Exit?
  • Next by thread: A question about Graphics3D