MathGroup Archive 2008

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

Search the Archive

Re: Can you minimize a notebook window from a notebook in Version 6?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg84843] Re: Can you minimize a notebook window from a notebook in Version 6?
  • From: ragfield <ragfield at gmail.com>
  • Date: Wed, 16 Jan 2008 22:58:37 -0500 (EST)
  • References: <fmkfig$a06$1@smc.vnet.net>

On Jan 16, 2:34=A0am, deepyog... at gmail.com wrote:
> Is there a way to minimize a Mathematica notebook window from within
> another Mathematica notebook that opened it with a call to
> NotebookOpen (I am using version 6 on a Mac if it matters), once the
> notebook is open? I have a notebook that opens several notebooks, but
> I only want a couple of them to show up on the screen initially, and
> then later just making them visible is a single mouse-click away. Is
> there a way to minimize the just opened notebook windows? Some way to
> use the "Minimize Window" command (Apple-M on a Mac and Windows
> version does not have the same menu command) or ??. I need to do this
> from inside of Mathematica not from the OS.

(* minimize *)
FrontEndTokenExecute[nb, "WindowMiniaturize"]
(* restore *)
SetSelectedNotebook[nb]

FYI, you can find the exact code Mathematica is using to perform menu
operations by reading $InstallationDirectory/SystemFiles/FrontEnd/
TextResources/Macintosh/MenuSetup.tr.

-Rob


  • Prev by Date: Re: Version 6 graphics can be painfully slow
  • Next by Date: Re: Version 6 graphics can be painfully slow
  • Previous by thread: N::meprec in LinearProgramming
  • Next by thread: Re: Can you minimize a notebook window from a notebook in Version 6?