This question is almost the same as my previous question, but with one major difference; I want to turn on/off Bluetooth from the command line (bash or similar), NOT from AppleScript - the answers for this I saw on superuser all used AppleScript.
I would guess that networksetup
might be useful but have no idea what interface(s) to interact with - I would like an answer including a complete command I can run (and understand) - if device model matters, it's Snow Leopard on MacBook2,1
to MacBook7,1
, except MacBook5,1
, and if you can only do for 6,1 and 7,1 that's fine.
osascript -e "<applescript goes here>"
if popping up windows is the only issue you have with using it.