Skip to content

Instantly share code, notes, and snippets.

@robjwells
Last active October 10, 2015 11:17
Show Gist options
  • Save robjwells/3681949 to your computer and use it in GitHub Desktop.
Save robjwells/3681949 to your computer and use it in GitHub Desktop.
Quickly restart your Mac into Windows
set deviceID to (do shell script "diskutil list | awk '/YourBootcampPartition/ {print $NF}'")
do shell script "bless -device /dev/" & deviceID & " -legacy -setBoot -nextonly" ¬
with administrator privileges
tell application "Finder" to restart
@robjwells
Copy link
Author

Anyone not wanting to type in their password should definitely check out @jwhitley's fork, and be sure to read his explanation in the first comment on that Gist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment