Bluetooth mouse stops working almost everytime I wake my mac from sleep
I've had issues reconnecting my bluetooth keyboard &amp; trackpad since upgrading to Yosimite.
I run this script via custom Automator Application:


Search for (Spotlight search) and run Automator
Click "New
Document" at bottom
Choose "Application" for new file type 
Click on "Utilities" from list 
Double-Click "Run AppleScript" 
Replace (* Your script goes here *) with:

do shell script "kextunload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport; 
kextload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport" with administrator privileges

Press play to test (will prompt for password)
File->Save to desktop or wherever


Run the automator app whenever bluetooth devices won't connect