Forked from robjwells/Restart in Windows.applescript
Last active
November 10, 2016 16:23
-
-
Save jwhitley/8377268 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set deviceID to (do shell script "diskutil list | awk '/YourBootcampPartition/ {print $NF}'") | |
do shell script "sudo bless -device /dev/" & deviceID & " -legacy -setBoot -nextonly" | |
tell application "Finder" to restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That’s a neat solution, nice work John.