Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

(If this is entirely trivial, although I couldn't find an answer as much as I searched the archives, I will delete the question.)

How could I add a keyboard shortcut to evaluate the entire notebook instead of going to Evaluation -> Evaluate Notebook again and again ?

share|improve this question
3  
I would post in answer, but I haven't tried it. Check out [customizing Mathematica shortcuts] (stackoverflow.com/questions/4209405/…) with the token EvaluateNotebook similar to the EvaluatorQuit demonstrated –  Timothy Wofford Sep 29 '13 at 14:48
    
Thanks; I added it (EvaluateNotebook), but it enters an infinite loop. Also there are a couple of links in answer, that are no longer available. –  Zet Sep 29 '13 at 15:02
5  
How about Command-A followed by enter? –  bill s Sep 30 '13 at 3:21

3 Answers 3

up vote 7 down vote accepted

Presonally I would use what bill_s suggested, Ctrl+A followed by Shift+Enter.

But if you want to have one shortcut you can use what Timothy linked. Just add this line to the KeyEventTranslations.tr file:

 Item[KeyEvent["h", Modifiers -> {Control}], 
      FrontEndExecute[FrontEndToken[SelectedNotebook[ ], "EvaluateNotebook"]]]  

it works for me.


Your infinite loop probably showed while testing on the notebook. Well, if you want to evaluate notebook and the last line is

FrontEndTokenExecute["EvaluateNotebook"]

then it will definitelly result in such loop.

share|improve this answer
    
Thanks @kuba! I will check the solution you propose and I will accept your answer later today. –  Zet Oct 2 '13 at 12:19

For OSX you can do the following.

  1. Select Mathematica.
  2. Click on "Mathematica" menu then "Services -> Services Preferences..."
  3. Select "Shortcuts" tab.
  4. In the left side select "App Shortcuts".
  5. Click the + button.
  6. Fill out the following.

    enter image description here

  7. Click add after you have set your short cut key and you are good to go.

share|improve this answer

I use Alt+v+o, or Alt, then v, then o (they don't have to be entered at the same time, just in succession). That's the same as Evaluation > Evaluate Notebook

share|improve this answer
1  
+1 note the "evaluate notebook" menu item was curiously missing in some versions, glad to see it back. –  george2079 May 29 at 15:46
    
In what versions does this work? It seems that here it doesn't (Mac OSX, Mathematica 9.0.1). Thanks! –  Zet May 29 at 17:05
    
I use Windows 7 and MMA 9. Have you tried it with the Command/Control/Option key? Also, you don't have to hit all the keys at once; I usually hit "Alt" lift finger "v" lift finger "o". –  seismatica May 30 at 2:49

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.