If you’ve changed the name of your Boot Camp volume, you’ll need to change BOOTCAMP on line 15 to the name of your Boot Camp Volume. Open This Code in AppleScript Editor and change the text YOURPASSWORDHERE to your administrator password. If doRestart is equal to "Cancel" then quit end if if doRestart is equal to "Restart" then do shell script "bless -mount /Volumes/BOOTCAMP/ -legacy -setBoot -nextonly shutdown -r now" password adminpass with administrator privileges Set doRestart to button returned of askRestart Set adminpass to "YOURPASSWORDHERE" 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 "Restart in Windows?" buttons default button 1 with icon iconPath
0 Comments
Leave a Reply. |