Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

TESEV

macrumors member
Original poster
I've been looking around for an easier way to boot into windows without having to hold down the option key and found this nifty-looking AppleScript:

http://www.macinstruct.com/node/129
AppleScript said:
do shell script "bless -mount /Volumes/Windows/ -legacy -setBoot -nextonly" password "XXXXXXX" with administrator privileges
do shell script "shutdown -r now" password "XXXXXXX" with administrator privileges

I don't use the password part but thought other people might be interested in it.

Now, it's not working for me, and that's probably because I'm a tinkerer. My Windoze partition isn't called Windows (I call it "pie_hell") so I have to change the path to "/Volumes/pie_hell/". It restarts without complaining but boots into Mac OS X; I would have thought it difficult to confuse pie_hell with pie_heaven 😉
Also, I've got a Firmware Password set if that means anything to anyone.

When I go to System Preferences>Startup Disk and tell it to boot there it works perfectly.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.