On macOS, produce a "Swoosh" sound when sending mail even when Do Not Disturb or some other focus is on.
On macOS Mail.app, the "Swoosh" sound when sending mail is turned off whenever some focus such as "do not disturb" is activated. I think this is a bug, as I am rarely "disturbed" by my own actions. The enclosed app (an Automator script) fixes this by playing a "Swoosh" sound whenever Mail.app should, but does not.
- Download
Auto Swoosh.app.zip
from Releases and unzip it - Move the resulting
Auto Swoosh
app to/Applications
or~/Applications
and open it. (You may have to enable this explicitly.) - Note that
Auto Swoosh
shows no notification that it is running - no menu bar icon, no dock, nada, niente, rien. - However, you should now get a swoosh sound whenever Mail.app sends a mail - even when "do not disturb" or any other focus mode is on.
- The swoosh sound persists as long as
Auto Swoosh
is running. To stop it, enterpkill -f 'Auto Swoosh'
in Terminal. - You can also add
Auto Swoosh
to the list of apps that are automatically opened when you login.
$ pip install appify
$ make
$ make install
Auto Swoosh
is a tiny shell script lines that subscribes to messages from Mail.app named
Do Not Disturb is enabled, sound play aborted
and as soon as Mail.app logs this message while sending a mail, Auto Swoosh
plays a swoosh sound (instead of Mail.app).
For details, see auto-swoosh.sh