Hi all !
In macOS Sequoia, if I run in Script Editor: display notification "Hi all"
it works as expected.
But if I use in Terminal: osascript -e 'display notification "Hello from me" with title "Hello"'
is not working!!
But “display dialog” works perfectly: osascript -e 'display dialog "Hello from me" with title "Hello"'
And also this is not working from the Script Editor: do shell script "osascript -e 'run script \"display notification \\\"hello\\\"\"'"
I don’t understand why display notification cannot be triggered from Terminal anymore…
It is not ‘Focus’ that prevent this, since it is not activated.
Any Help ?
Thanks
Indeed. Which is a bit counterintuitive, since I was expecting (wrongly) that Terminal was requesting the permission to send notification …
Thanks again !
Me too! I expected to see the Terminal app in the Notifications Center, but it was actually Script Editor that needed the permission. After thinking about it, this makes sense.