MathGroup Archive 2007

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

Search the Archive

Switching between open notebooks

  • To: mathgroup at smc.vnet.net
  • Subject: [mg80585] Switching between open notebooks
  • From: "Yuri Kandrashkin" <spinalgebra at gmail.com>
  • Date: Sun, 26 Aug 2007 04:28:20 -0400 (EDT)

Hi,

I prefer using keyboard commands and
I dont really like the mechanism of switching between active
(selected) notebooks from FrontEnd menu. I have found a solution which
might be helpful for others.
I set keyboard shortcut "ALT-`" to rotate open notebooks which is similar to
"ALT-TAB" command of choosing active programs in Windows.
Below are steps to activate this mechanism:

1. Find the file "MenuSetup.tr". You can find it path by evaluation of
the command:
ToFileName[{$TopDirectory,"SystemFiles","FrontEnd","TextResources","Windows"}]
2. Copy this file keeping the same directory structure into your
$UserBaseDirectory
3. Put the following line
		,Delimiter,
		Item["&Switch Windows",
			KernelExecute[SetSelectedNotebook[Last[
				DeleteCases[Notebooks[],MessagesNotebook[]]]]],
	 		MenuKey["`",Modifiers->{Command}],
			MenuEvaluator -> Automatic]
after 	the line Item["Start Windows Listing", "MenuListWindows",
MenuAnchor->True]
The command and shortcut is optional, you can choose other combination
4. Restart Mathematica

This should activate the shortcut command "ALT-`" to swith active windows.

Unfortunately the solution isn't perfect because it uses the commands of kernel.
Please let me know if there is a better solution.

-- 
Sincerely,
Yuri Kandrashkin, PhD
http://spinalgebra.com - Mathematica based applications:
- Magnetic Resonance with SpinAlgebra
- Work with systems of Units


  • Prev by Date: Behaviour of Mathematica varies according to size of digital image imported
  • Next by Date: Re: Re: fit a BinomialDistribution to exptl data?
  • Previous by thread: Behaviour of Mathematica varies according to size of digital image imported
  • Next by thread: Re: Switching between open notebooks