|
|
Ease Mac OS / Windows Boot Camp switching
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 privilegesThis 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
Ease Mac OS / Windows Boot Camp switching
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
where disk0s3 is my BootCamp partition.
Ease Mac OS / Windows Boot Camp switching
The above can also be simplified to:
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).
|
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.16 seconds |
|