I have a script that unmounts my windows partitions on startup, since the NTFS driver eats a lot of battery life even when I'm not accessing those partitions. Now I'm trying to make a quick one-time "reboot into windows" script that mounts my windows partition, blesses the partition, then reboots. I've got this so far, but it's not working. I'm guessing it has something to do with the sudo? I'm not sure how to do that in Automator.
Code:
hdiutil mount /dev/disk0s3
bless --device /dev/disk0s3 --setBoot --legacy --nextonly
sudo reboot