Edited 2025-06-27 (2). V. 0.41 (shall we say!) is a bug fix to restore the disabling of “Failure aborts macro” and “Notify on failure” for the final move mouse
action.
Edited 2025-06-27 (1). This new version checks for the following nagifications:
- “Upgrade to macOS Sequoia” in monochrome (as before);
- “Upgrade to macOS Sequoia” in colour (as before); and
- “Updates available”, since Apple is abusing that too—but note that automatically dismissing this notification will require you to routinely check in other ways for the updates that you would want. See the follow-up post about that.
To improve its reliability, I have made some other tweaks to the macro too, but since I am probably the only person who is using it (this topic is really just for possible general interest), please excuse me for not documenting them.
Edited 2025-06-20. The new version of the macro checks for two styles of notification that Apple uses to nag about Sequoia. The macro now calls itself (to run a new instance) as its last action. Also, upon launch, the macro now checks for the notification more frequently, since doing so does not increase CPU usage significantly.
If you still use MacOS Sonoma, you might think that you have good reasons for doing so (e.g. software compatibility, hardware compatibility or wishing to avoid some breaking changes), but Apple insists that you must upgrade to macOS Sequoia without further delay and that you need to “Discover new features to unlock your productivity and creativity on Mac”.
Here is a macro that checks for the appearance of the nagging notifications about Sequoia.
The macro is triggered at engine launch and continues running. To avoid unnecessary work by the Mac:
(1) Instead of using Pause Until
for the loop, the macro uses an Until
loop containing a Pause
[1] set to 1 minute.
(2) Once the notification has been dismissed, the macro will pause for 24 hours before calling (a new instance of) the same macro before terminating.
Use this macro with care (standard disclaimers apply) and, if you wish, point out where I could have used alternatives to image detection (I found a post on Ask Different that shows a way to use JXA to close all notifications).
Dismiss Sequoia upgrade nagifications.kmmacros (656.3 KB)