Jump to content

OS X Yosemite will be available from the Mac App Store today


Recommended Posts

  • 4 weeks later...
Posted

We've just started looking at migrating to Yosemite and ran into the Bootpicker issue. I looked into alternatives (Bootrunner, Quickboot) but as we hide the Bootcamp volume from students neither suited our needs as they wouldn't work if a second student then logged into OS X unless they restarted the machine first - Bootpicker bless it's heart always worked regardless of the drive being mounted or not.

 

In the end I wrote an application that meets our requirements which students run from the dock, if anyone's interested I've included the code below:

 

do shell script "diskutil mount /dev/disk0s4"

set adminpass to "YOUR LOCAL ADMIN PASSWORD"

tell application "Finder"
set iconPath to (get name of startup disk) & ":Applications:Utilities:Boot Camp Assistant.app:Contents:Resources:DA.icns" as alias
end tell

set askRestart to display dialog "Are you sure you want to restart this iMac into Windows?" buttons {"No", "Yes"} default button 1 with icon iconPath
set doRestart to button returned of askRestart

if doRestart is equal to "No" then
do shell script "umount /Volumes/BOOTCAMP" password adminpass with administrator privileges
end if

if doRestart is equal to "Yes" then
do shell script "bless -mount /Volumes/BOOTCAMP/ -legacy -setBoot -nextonly; shutdown -r now" password adminpass with administrator privileges
end if

 

Obviously not as nice as Bootpicker as the students have to log in, then launch the app to go into Windows but it works for us.

  • 7 months later...
  • 2 months later...
  • 4 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...