install.doctor icon indicating copy to clipboard operation
install.doctor copied to clipboard

Need Programmatic Way of Dismissing Notifications on macOS

Open ProfessorManhattan opened this issue 1 year ago • 1 comments
trafficstars

💡 Feature/Idea

During the install, on macOS a lot of notifications appear that currently require manual effort to dismiss. See this screenshot:

Screenshot 2023-12-06 at 7 41 51 PM

We need a one-liner that dismisses all the notifications.

:thumbsup: Can you contribute?

No response

ProfessorManhattan avatar Dec 07 '23 00:12 ProfessorManhattan

@ProfessorManhattan, the javascript code here is able to clear notifications. There are other applescript code in that gist but none of those worked for me (Ventura). Save the javascript code with extension .javascript. This can then be run using the script editor to test or by running osascript <file>.javascript. Could you please help test the script before adding it to the repo?

Also, this feature is available in Lanuchbar (this and this). I find it interesting. This may be a good candidate to integrate.

enggnr avatar Dec 28 '23 06:12 enggnr