title: OSX 10.11 El Capitan - setting boot device property not working
body: <p>I am working on a dualboot system and used the following applescript to set the startup volume:</p>
  
  <pre><code>    tell application "Finder" to if not (disk "SoundHD" exists) then do shell script "diskutil mount " &amp; 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"
  </code></pre>
  
  <p>Since El Capitan the script won't work anymore and I am getting the following error message in the Script Editor:</p>
  
  <pre><code>tell application "Finder"
     exists disk "SoundHD"
              --&gt; true
      end tell
      tell current application
          do shell script "bless -mount \"/Volumes/SoundHD\" -setBoot --nextonly" with administrator privileges
              --&gt; error "Could not set boot device property: 0xe00002bc" number 3
      Ergebnis:
      error "Could not set boot device property: 0xe00002bc" number 3
  </code></pre>
  
  <p>Are there some new changes in the bless command?</p>
  
  <p>Thanks for any help.</p>