6
$\begingroup$

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

$\endgroup$
14
$\begingroup$

I'd do something like this.

Pause[5];
Speak["Done Pausing for 5 Seconds"]
| improve this answer | |
$\endgroup$
  • 2
    $\begingroup$ In reality I'd have it say something much sexier but that's up to you :) $\endgroup$ – Andy Ross Nov 16 '12 at 17:52
  • 3
    $\begingroup$ ...now, how do I configure Mathematica to use a "bedroom voice"... >:) $\endgroup$ – J. M.'s discontentment Nov 16 '12 at 17:58
  • 1
    $\begingroup$ @J.M. Just pretend she's from Vulcan. $\endgroup$ – Andy Ross Nov 16 '12 at 17:59
  • $\begingroup$ Hi @Andy Ross, yes please let me know how to make it smoother, possible to change pitch etc of voice? $\endgroup$ – sebastian c. Nov 16 '12 at 18:18
  • $\begingroup$ This is what I've actually been doing recently :) $\endgroup$ – Szabolcs Nov 16 '12 at 18:51
4
$\begingroup$

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

| improve this answer | |
$\endgroup$
4
$\begingroup$

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
]
| improve this answer | |
$\endgroup$
  • $\begingroup$ This is awesome! I replaced the last i with a ProgressIndicator on a Dynamic counter variable, it's wonderful! $\endgroup$ – Ziofil Feb 17 '15 at 4:04

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