Is Mathematica able to communicate with macOS's native Notification Center in order to notify me if an evaluation finishes in any of my open notebooks?
I'm looking for a solution similar to this one except it shouldn't rely on Growl.
Mathematica Stack Exchange is a question and answer site for users of Wolfram Mathematica. It only takes a minute to sign up.
Sign up to join this communityA quick Google search returned:
Based on this, we can use
notify[asc_] :=
RunProcess[{"osascript", "-e",
StringTemplate["display notification \"`message`\" with title \"`title`\""][asc]}]
notify[<|"message" -> "I'm finished!", "title" -> "Mathematica"|>]
You can customize this further to your needs.
CellEpilog
from the thread that you yourself linked. You might try to set this in the stylesheet.
$\endgroup$
– Szabolcs
Oct 30 '17 at 14:23
notify[asc_] := RunProcess[{"osascript", "-e", StringTemplate[ "display notification \"
message\" with title \"
title\""][ asc]}, "StandardOutput"] notify[<|"message" -> "I'm finished!", "title" -> "Mathematica"|>]
, and it works in MMA 11.2. It gives me a notification.
$\endgroup$
– José Antonio Díaz Navas
Oct 30 '17 at 14:27