Individual app volume on Mac · Volume shortcuts

Browser setup and per-app volume help

Each browser needs one setting turned on before Beamhook can control a single tab.

Firefox tabs aren't supported. Browser controls work in Safari, Chrome, Brave, Arc and Vivaldi.

Beamhook controls apps like Spotify with AppleScript. Browsers need one more step: to see which tabs are playing and control the one you picked, Beamhook runs a small script in each tab. Browsers block this until you allow it.

Until then, media keys still reach the browser, but macOS picks the tab. That's what the notice in Beamhook means. Turning it on takes a few seconds.

Safari

1. Show the developer settings

Open Safari → Settings (⌘,), click Advanced, and tick Show features for web developers. This adds a Developer tab to Settings.

Advanced
✓Show features for web developers
Safari → Settings → Advanced, at the bottom of the pane.

2. Allow JavaScript from Apple Events

Open the new Developer tab. Under Automation, tick Allow JavaScript from Apple Events. No restart needed.

Developer
WebsitesProfilesExtensions AdvancedDeveloperFeature Flags
Automation:
Allow remote automation
Allow JavaScript from Smart Search field
✓Allow JavaScript from Apple Events
Safari → Settings → Developer. It's the third box under Automation.

On older versions of Safari

Older versions have no Developer tab. Step 1 adds a Develop menu to the menu bar instead, and Allow JavaScript from Apple Events is in that menu. It's the same setting either way.

SafariFileEditView HistoryDevelop WindowHelp
Open Page With›
Show Web Inspector

✓Allow JavaScript from Apple Events
Allow Remote Automation
Older Safari: the Develop menu. Other items vary by version.

Chrome

Choose View → Developer → Allow JavaScript from Apple Events. A checkmark means it's on.

ChromeFileEditView HistoryBookmarks WindowHelp
Chrome's View → Developer submenu.

The other browsers

After you turn it on

Volume and mute controls

Each app has a volume slider and a speaker button to mute it. A browser's main row sets the whole browser; the indented rows under it are single tabs. Raising a muted source's volume unmutes it, and unmuting brings back the old level.

Per-app volume and mute need macOS 14.2 or later and System Audio Recording permission. Audio is adjusted as it plays and never saved. If an app has its own volume control, Beamhook uses it. Tab controls also need the browser setting and Automation access above.

The expanded overlay

With the menu's Volume keys toggle off, press Command + Volume or Command + Play to open the app and tab picker. If a Beamhook overlay is already showing, Command + an arrow key opens it too.

With Volume keys on, the plain volume keys open the picker, and the shortcuts work without Command while it's open. Command + Volume then always changes system volume. With the toggle off, the picker closes when you let go of Command; with it on, it fades when you stop using it. Play buttons only appear for sources that support them, and for browser tabs.

Which apps appear?

The menu lists apps that are playing or played in the last two hours, plus the hooked one. Click Show all to see the rest. Paused browser tabs stay listed for up to two hours, at most three per browser. Closed tabs drop off on the next check, and the list resets when Beamhook quits.

The speaker arcs animate while sound plays. How many arcs you see follows the volume setting, not how loud the sound is.

Still stuck, or does your browser look different? Open an issue on GitHub with your macOS and browser versions.  ·  beamhook.app

Made by . I built Beamhook because my media keys kept controlling the wrong app. The source is on GitHub, and bug reports and feature requests are welcome.