I have tried to use an AppleScript to reboot to Windows It's not going well though, as when I tried it the first time, a white screen appeared on startup and didn't go away. A hard reset rebooted to Yosemite. I have this script saved as an Application and in my Dock for instant restart, but it's been disappointing.
Here's the script:
set adminpass to "MYPASSWORDWENTHERE"
tell application "Finder"
set iconPath to (get name of startup disk) & ":Applications:Utilities:Boot Camp Assistant.app:Contents:Resources:DA.icns" as alias
end tell
set askRestart to display dialog "Restart in Windows?" buttons {"Cancel", "Restart"} default button 1 with icon iconPath
set doRestart to button returned of askRestart
if doRestart is equal to "Cancel" then
quit
end if
if doRestart is equal to "Restart" then
do shell script "bless -mount /Volumes/BOOTCAMP/ -legacy -setBoot -nextonly; shutdown -r now" password adminpass with administrator privileges
end if
Can anyone help me get this thing to work?
bless ...
directly in Terminal?sudo bless -mount /Volumes/BOOTCAMP/ -legacy -setBoot -nextonly; sudo shutdown -r now
and press Return