megabyte-labs / install.doctor

A glorious combination of application / theme settings and a performant cross-platform, desktop-oriented software suite.
https://megabyte.space
Other
85 stars 17 forks source link

Need Programmatic Way of Dismissing Notifications on macOS #128

Open ProfessorManhattan opened 7 months ago

ProfessorManhattan commented 7 months ago

💡 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

enggnr commented 7 months ago

@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.