I am working on a dualboot system and used the following applescript to set the startup volume:
tell application "Finder" to if not (disk "SoundHD" exists) then do shell script "diskutil mount " & last word of (do shell script "diskutil list | grep 'Apple_HFS SoundHD'")
do shell script "bless -mount \"/Volumes/SoundHD\" -setBoot --nextonly" with administrator privileges
display notification "Next Boot: SoundHD" with title "Neustart"
Since El Capitan the script won't work anymore and I am getting the following error message in the Script Editor:
tell application "Finder"
exists disk "SoundHD"
--> true
end tell
tell current application
do shell script "bless -mount \"/Volumes/SoundHD\" -setBoot --nextonly" with administrator privileges
--> error "Could not set boot device property: 0xe00002bc" number 3
Ergebnis:
error "Could not set boot device property: 0xe00002bc" number 3
Are there some new changes in the bless command?
Thanks for any help.
You must first disable System Integrity Protection.
csrutil disable
in the terminal window and hit the return key.source: http://mattjanik.ca/blog/2015/10/01/refind-on-el-capitan/