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


Click here to return to the 'Choose startup disk via AppleScript' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Choose startup disk via AppleScript
Authored by: Greville on Jan 30, '07 01:39:21AM
Hi Swordfish, You need to add the -legacy option, I use the following to reboot into windows:
do shell script "bless -mount /Volumes/yourWindowsVolume/ -legacy -setBoot -nextonly" password "yourPassword" with administrator privileges
do shell script "shutdown -r now" password "yourPassword" with administrator privileges
Just replace 'yourWindowsVolume' with your Bootcamp partition and 'yourPassword' with your admin password. NOTE: Having your admin password in plain text like this creates security issues for publicly accessible machines. If this is a concern you can lock down access to the script or simply remove 'password "yourPassword"' and the script will prompt people for the password.

[ Reply to This | # ]
Choose startup disk via AppleScript
Authored by: Swordfish on Jan 30, '07 03:37:12PM

You are awesome! Many thanks, works like a charm! :)



[ Reply to This | # ]