MathGroup Archive 2008

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

Search the Archive

Re: Mathematica and Spaces on Mac Os X

  • To: mathgroup at smc.vnet.net
  • Subject: [mg90347] Re: Mathematica and Spaces on Mac Os X
  • From: Bob F <deepyogurt at gmail.com>
  • Date: Sun, 6 Jul 2008 07:21:40 -0400 (EDT)
  • References: <200807031012.GAA03176@smc.vnet.net> <g4klcp$m5e$1@smc.vnet.net>

On Jul 4, 2:01 am, Raul Martinez <raulm... at mac.com> wrote:
> Leopard's Spaces works with individual applications. One can assign an =
 
> application to a single specific space or to every space (those are  
> the choices provided) but you cannot assign an application to multiple =
 
> spaces. Assigning an application to "every space" means that one can  
> open the application in any space not that the application opens  
> simultaneously on all spaces.
>
> HTH.
>
> Raul Martinez
>
> On Jul 3, 2008, at 3:12 AM, Namrata Khemka wrote:
>
> > Hi everyone,
>
> > My mathematica code creates many notebooks and palettes using the
> > CreateDocument and CreatePalette. However, I was wondering if there  
> > is a way
> > to integrate the opening of these notebooks with the "Spaces"  
> > concept in
> > Leopard on Mac Os X. For instance, I have 4 "Spaces" screens set-up  
> > and is
> > it possible to open the palettes in one of the "Spaces" screens and  
> > the
> > Documents created in the other one.
>
> > Does Mathematica provide such integration? Is it possible to set  
> > this up?
>
> > Thanks very much,
> > Namrata Khemka

One thing you can try, if your computer allows it, is to have two
monitors. I do this and I put the palettes and help window on one
monitor and my workbooks on another monitor. This is not dependent on
Leopard's "Spaces". You can create a "master" notebook that opens al
your notebooks at once in selected places. Something like this:

docpath =   ToFileName[{"/Volumes", "bob", "Documents",
"Mathematica"}, "Notebooks"];
nb1 = NotebookOpen[ToFileName[docpath, "Notebook1.nb"],
  WindowMargins -> {{10, Automatic}, {Automatic, 0}},
  WindowSize -> {957, 786}]
nb2 = NotebookOpen[ToFileName[docpath, "Notebook2.nb"],
  WindowMargins -> {{-1670, Automatic}, {1, Automatic}},
  WindowSize -> {961, 418}]
nb3 = NotebookOpen[ToFileName[docpath, "Notebook3.nb"],
  WindowMargins -> {{10, Automatic}, {Automatic, 0}},
  WindowSize -> {957, 786}, Visible -> True]
FrontEndTokenExecute[ nb3, "WindowMiniaturize"]
nb4 = NotebookOpen[ToFileName[docpath, "Notebook4.nb"],
  WindowMargins -> {{10, Automatic}, {Automatic, 0}},
  WindowSize -> {957, 786}, Visible -> True]
FrontEndTokenExecute[ nb4, "WindowMiniaturize"]
nb5 = NotebookOpen[ToFileName[docpath, "Notebook5.nb"],
  WindowMargins -> {{10, Automatic}, {Automatic, 0}},
  WindowSize -> {957, 786}, Visible -> True]
FrontEndTokenExecute[ nb5, "WindowMiniaturize"]

The positions on the notebook calls above will of course not likely be what
you want. Put your notebook windows in the position you want and then
use the "Option Inspector" to look at the size and position/margins of
each (look at "WindowSize" and "WindowMargins" variables to see what
they are and then change the numbers in the "master.nb" file for them
to come up in the desired position from then on.

-Bob


  • Prev by Date: Fwd: The show command freezes
  • Next by Date: Re: Piecewise and multiple values
  • Previous by thread: Re: Mathematica and Spaces on Mac Os X
  • Next by thread: Re: Mathematica and Spaces on Mac Os X