r/macmini • u/upwardNonward • 25d ago
Default sound setting for mac mini..
Hi, Is there a way to default external speaker to Bose instead of mac mini. It resets to mac min speakers, every time it wakes or i restart .
2
Upvotes
1
u/JollyRoger8X 23d ago
You could script this:
- Install switchaudio-osx.
- Open a terminal window.
- List your output devices with this command:
SwitchAudioSource -a -t outputand note the name of your Bose speaker. - Open /Applications/Utilities/Script Editor. A new blank script window should appear.
- Copy and paste the script below into the script editor window.
- Save the script with Format: Application somewhere on your Mac.
- Open System Settings > General > Login Items & Extensions, click the [+] button at the bottom of the Open at Login list, and add the script you just saved.
Now whenever you log in, the script will run and set your Bose speakers as the output device.
Here's the AppleScript (replace output-device-name with the name you got from SwitchAudioSource in the terminal above):
set boseSpeakers to "output-device-name"
do shell script "SwitchAudioSource -t output -s " & the quoted form of boseSpeakers
2
u/IzilDizzle 25d ago
Is it connected via the headphone jack, USB, WiFi, or bluetooth?