Auto connect Bluetooth on startup. Automator?

mongobongo

macrumors member
Original poster
May 1, 2007
96
36
Hey everyone!

Bit of help needed. I have a Bluetooth amplifier that does not auto connect. Every time I restart my Mac i have to manually connect from System Preferences or the Bluetooth icon. Is there a way to automate this? Perhaps through Automator and saving the action as an application and adding it as a login item?
 

Brookzy

macrumors 601
May 30, 2010
4,825
4,880
UK
This might work...

Run in terminal:
Code:
sudo defaults write /Library/Preferences/com.apple.Bluetooth.plist DontPageAudioDevices 0
Restart your Mac.
 

mongobongo

macrumors member
Original poster
May 1, 2007
96
36
This might work...

Run in terminal:
Code:
sudo defaults write /Library/Preferences/com.apple.Bluetooth.plist DontPageAudioDevices 0
Restart your Mac.
I think that's the default value and I auto connect to all my other BT devices but my amplifier doesn't support auto connect.
 

Brookzy

macrumors 601
May 30, 2010
4,825
4,880
UK
Hmm... a possible, albeit inelegant, solution, would be to use the Automator 'watch me' feature and connect to your amplifier by clicking on it via the Bluetooth menu bar icon.
 

mongobongo

macrumors member
Original poster
May 1, 2007
96
36
I just played around with it for a while. It worked at first but wouldn't run properly at startup. And like you say not an ideal solution. When the workflow runs you can see it moving the cursor around. This would happen even if I startup my mac in a different location where the amp is not in range.
 

mongobongo

macrumors member
Original poster
May 1, 2007
96
36
You could figure out a terminal command to connect to your amp (https://apple.stackexchange.com/que...elect-the-bluetooth-device-using-command-line) and then have an Automator script to run that terminal command at startup.
Ok, so I had a chance to look into it and I think you're on to something! The only problems is that the blued commands are not working. I get a "command not found error" but I have managed to figure out the address for my BT amplifier. If I can figure out the correct command to also connect to it, then it should be easy to make a workflow or a script that executes it. Any ideas?
 

Brookzy

macrumors 601
May 30, 2010
4,825
4,880
UK
Ok, so I had a chance to look into it and I think you're on to something! The only problems is that the blued commands are not working. I get a "command not found error" but I have managed to figure out the address for my BT amplifier. If I can figure out the correct command to also connect to it, then it should be easy to make a workflow or a script that executes it. Any ideas?
I came across this, which could possibly help? https://stackoverflow.com/questions...ooth-device-iphone-via-command-line-on-macosx
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.