MathGroup Archive 2008

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

Search the Archive

Re: Notebook[]

  • To: mathgroup at smc.vnet.net
  • Subject: [mg88252] Re: Notebook[]
  • From: dh <dh at metrohm.ch>
  • Date: Tue, 29 Apr 2008 06:52:06 -0400 (EDT)
  • References: <fv42jk$5v2$1@smc.vnet.net>


Hi,

here is a function that returns the left window margin if given a 

Notebook as input:

(WindowMargins /. Options@#)[[1, 1]] &

hope this helps, Daniel



N K wrote:

> Hi Everyone,

> I have a notebook related question. I have about 50

> notebooks open on the screen with different titles. I

> want to select the notebooks with certain titles. I do

> have this working:

> 

> Select[Notebooks[], StringMatchQ[("WindowTitle" /. 

>     NotebookInformation[#]), "temp"] &]

> 

> 

> However, I want to take this a step further, and

> retrieve only those notebooks that are on the left

> side of my screen and close them. In other words, I

> somehow need to divide my monitor in half and select

> all the windows on the left side and close them by

> NotebookClose. 

> 

> I know of WindowMargins but I am not sure how to

> retrieve information:  

> Options /@ Select[Notebooks[],

> StringMatchQ[("WindowTitle" /. 

>     NotebookInformation[#]), "temp"] &]

> 

> Any help would be great. Thanks in advance.

> 

> 

> 

> 

> 

>       ____________________________________________________________________________________

> Be a better friend, newshound, and 

> know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

> 

> 




  • Prev by Date: Re: Change integral variables
  • Next by Date: Re: Does Mathematica really need more printed, introductory documentation?
  • Previous by thread: Notebook[]
  • Next by thread: How to open a Package