Q: AppleScript Bluetooth on/off
Hi folks.
Just looking for a way to toggle Bluetooth on and off using a single AppleScript. Any takers? I've tried some of the scripts posted here, but they were posted in 2006 or so, and all don't work...that I have found.
Cheers
Mac Pro, Mac OS X (10.6.7), Hypercard UG!
Posted on Jul 15, 2011 9:04 AM
tell application "System Preferences"
reveal pane id "com.apple.preferences.Bluetooth"
-- activate -- optional, just if you want to display the window
tell application "System Events" to tell process "System Preferences"
click checkbox "On" of window 1
end tell
quit
end tell
Message was edited by: Pierre L. (“activate” commented out and “quit” added)
Posted on Jul 15, 2011 9:31 AM