8

Possible Duplicate:
Customize front end to add notifications when evaluation finishes?

How to setup sound alert notification when simulation is complete?

I need to do something else while waiting for a long simulation to complete instead of sitting there watching the simulation to complete the whole 'Evaluate Notebook' process.

Thank You

sebastian c.
  • 1,973
  • 2
  • 18
  • 27

3 Answers3

16

I'd do something like this.

Pause[5];
Speak["Done Pausing for 5 Seconds"]
Andy Ross
  • 19,320
  • 2
  • 61
  • 93
6

You could set the notebook, global, or cell level option "EvaluationCompletionAction" to "Beep"

Rojo
  • 42,601
  • 7
  • 96
  • 188
4

I'd be inclined to use something like this:

Monitor[
  Do[Pause[0.2], {i, 50}],
  If[Mod[i, 10] == 0, Speak[ToString[2 i] <> " percent done"]]; i
]
Mr.Wizard
  • 271,378
  • 34
  • 587
  • 1,371
  • This is awesome! I replaced the last i with a ProgressIndicator on a Dynamic counter variable, it's wonderful! – Ziofil Feb 17 '15 at 04:04