Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Ease Mac OS / Windows Boot Camp switching' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Ease Mac OS / Windows Boot Camp switching
Authored by: Greville on Apr 17, '08 09:35:20PM
I use boot camp for playing Windows games and use the following applescript:

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

This sets the iMac to boot into Windows and then restarts the Mac. The -nextonly switch means it will boot into Windows without changing your Startup Disk settings and will automatically boot into OS X after restarting from Windows. It's a bit like automatically holing down the option key and choosing the Windows partition for you. The only time it falls down for me is when I have to restart Windows after an install, then I need to hold down option to avoid booting back into OS X. This script works in both Tiger and Leopard, I haven't tested it on any other versions of OS X

[ Reply to This | # ]
Ease Mac OS / Windows Boot Camp switching
Authored by: phil4u2 on Apr 20, '08 01:32:01PM
I found that this script doesn't work in Leopard.
Instead, I use the following:

do shell script "bless -device /dev/disk0s3 -legacy -setBoot -nextonly" password "xxxxxxx" with administrator privileges
do shell script "shutdown -r now" with administrator privileges


where disk0s3 is my BootCamp partition.

[ Reply to This | # ]
Ease Mac OS / Windows Boot Camp switching
Authored by: ebullient on Jan 10, '09 09:58:48AM
The above can also be simplified to:
do shell script "bless -mount /Volumes/WINDOWS/ -legacy -setBoot -nextonly; shutdown -r now" with administrator privileges
such that you don't include your password in the script, and are only prompted for it once. Also (for the unwary) make sure that WINDOWS matches your Windows partition name (check what's in the /Volumes directory to be sure).

[ Reply to This | # ]