i asked chat gpt : tldr; for switchign users, look at Keyboard Maestro. Otherwise a login script is easy enough without extra sofware
is there a way to set the apple mac system volume to 0 when logging in or switching users, as my wife like volume high, but i like it low and we use the same mac and she always leaves it high which startles me when i log in. I need apple native fix for this]
Unfortunately, macOS doesn't have a built-in feature to automatically adjust the system volume based on the user logging in or switching accounts. However, there are a couple of native workarounds you can try:
- Startup Items with AppleScript:
- You can create an AppleScript to set the volume to 0 and add it to your login items. Here's how:
- Open the Script Editor (search for it in Spotlight).
- Enter the following script:
applescript
set volume 0
- Save the script as an application.
- Go to System Preferences > Users & Groups > Login Items.
- Add the saved script to your login items.
- This will automatically mute the volume when you log in.
- Manually Adjust Volume Before Logging Out:
- As a habit, you could lower the volume to your preferred level before logging out or switching users. This way, the system retains the last-used volume setting for your account.
ok so that works when i login. Is there a trigger that works when i switch users ?
Unfortunately, macOS doesn't provide a native trigger specifically for adjusting the volume when switching users. The system doesn't differentiate between logging in and switching users in terms of automated actions like volume control.
However, you could explore third-party automation tools like
Keyboard Maestro or
BetterTouchTool, which allow you to create custom scripts or workflows that might detect user switching and adjust the volume accordingly. These tools aren't Apple-native, but they can offer a workaround.
If you're set on using only Apple-native solutions, the best option remains the AppleScript approach for login, as macOS doesn't natively support triggers for user switching. Let me know if you'd like help exploring third-party options!
ok suggest a clean third party tool
For a clean and reliable third-party automation tool on macOS, I recommend
Keyboard Maestro. It's a powerful app that allows you to create custom workflows and automate almost anything on your Mac. You can set triggers, like user switching, to adjust settings such as volume, open specific apps, or perform other tasks automatically. It offers a free trial and a one-time purchase option, making it a popular choice for Mac users who need advanced automation.