how to quickly reboot from OSX to Windows and back
Note: This does not work on systems with System Integrity Protection enabled


Write a shell script that does this 

#!/bin/sh
# tell OSX to change the boot disk 
# nextonly just for the next time - without the default would be Windows
/usr/sbin/bless -mount /Volumes/BOOTCAMP --setBoot  --nextonly  
# reboot
/sbin/shutdown -r now


This can be called from a terminal window 

sudo bootcamp


The use Automator to call this via an apple script and save as an application

on run {input, parameters}

    do shell script "/Users/mark/bin/bootcamp" with administrator privileges

    return input
end run