【发布时间】:2016-01-01 04:28:29
【问题描述】:
我正在使用双启动系统并使用以下applescript来设置启动音量:
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"
由于 El Capitan 脚本不再起作用,我在脚本编辑器中收到以下错误消息:
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
bless 命令有什么新变化吗?
感谢您的帮助。
【问题讨论】:
-
我会责怪系统完整性保护,但我不确定
标签: macos terminal applescript bless