How can Time Out pause any media before a break?

Time Out can perform actions before, during, or after a break. What if you want it to pause any media playing before a break?

A customer contributed a script that can be used with Break Actions to do just that.

It pauses any playing media when a break starts — Spotify, Plexamp, BBC Sounds, browser-based players, or anything else registered with macOS’s Now Playing system. Apps that are already paused are unaffected.

In addition to the script that you can use with Time Out’s Break Actions, there is a brew dependency that requires installation.

See the Pause Media GitHub page for details.

Note that I haven’t tested this; it seems fine, but use at your own risk.