title: AppleScript to toggle Bluetooth
body: <p>In OS X 10.8 I had a neat little AppleScript that I used to toggle Bluetooth quickly without using the mouse.</p>
  
  <p>I updated to 10.9 which added several UI changes to System Preferences. Among other things it replaced the element that toggles Bluetooth from a checkbox to a button. My script is now broken, and consequently so is my workflow.</p>
  
  <p>The problem is that the button's name changes from "Turn Bluetooth On" to "Turn Bluetooth Off" depending on its status. I don't have a sufficient grasp in AppleScript to figure out a workaround, and was wondering if you guys could help me out.</p>