Skip to content

Instantly share code, notes, and snippets.

@lancethomps
lancethomps / close_notifications_applescript.js
Last active November 21, 2024 19:01
AppleScript to close all notifications on macOS Big Sur, Monterey, and Ventura
function run(input, parameters) {
const appNames = [];
const skipAppNames = [];
const verbose = true;
const scriptName = "close_notifications_applescript";
const CLEAR_ALL_ACTION = "Clear All";
const CLEAR_ALL_ACTION_TOP = "Clear";

Keybase proof

I hereby claim:

  • I am lathomps on github.
  • I am lathomps (https://keybase.io/lathomps) on keybase.
  • I have a public key ASAWduVAA0Ssmds2q2z5eNttBpGXGsF5A_qV2GGppPzbkgo

To claim this, I am signing this object: