Bluetooth script

I work in an enterprise environment and I am looking for a script that disable the bluetooth or turns it off. Anyone have a script like that or can they create one?

Thanks in advance,

Dave

Hi,

take a look at the blueutil command line interface

I use it in scripts this way:

--Toggle Bluetooth On/Off
if last word of (do shell script "/usr/local/bin/blueutil status") is "on" then
	do shell script "/usr/local/bin/blueutil off"
else
	do shell script "/usr/local/bin/blueutil on"
end if

The script assumes that you have used the installer script that comes with it (Stefan’s link)