Pause all media apps

Hi There,

I want to be able to "just pause" several media playing at once from say 5 apps. Not toggle. So I can't just send Space to those apps. Just pause them. Is that possible?

Example - Spotify, Chrome, Plex etc.

And afaik, Fn+F8 is Play/Pause too!

You could try like this:

pause_keyboard_shortcut.bttpreset (4.7 KB)

Tried doing this. Doesn't seem to be working, for example with spotify.

One downside is that this won't help with multiple medias playing at same time. As I do not think Apple's default Play/Pause supports it. (Tried from Apple Shortcuts and Applescript)

I think the condition "(BTTCurrentlyPlaying == 1 && BTTCurrentlyPlayingApp == "Plex") might work... If that condition is true, send space!

But I do not see them in variable selector dropdown

Manually adding it as code just adds in TRUEPREDICATE

This too does not seem to work...

don't use returnToBTT in a function, just to a normal return, also don't call the function from within the java script, it will be automatically called via the "Async function to call"

returnToBTT is only required if you use a self executing async function

1 Like

However I think your best bet is to write some apple script to achieve what you need for the specific apps you want this in.

The apple script does not always work, for example "tell app Plex to pause" won't work as it is not supported! BTT seems better :rofl:

BTW this worked!

BUT: This does not work (I suppose that's why applescript / mac's defualt Play_Pause also doesn't work) when multiple media apps are running. I suppose I want an array?

I tried playing Plex and Spotify at once. And this gave only the one i started 1st EVEN AFTER i paused that!