Applescript works on Lion, not Sierra
Hi.
I have a couple of applescripts that I created some years ago without knowing much about scripts. When run, they change settings for startup disk, and restart my mac.
They always worked perfectly, but if I try them on Sierra, there are problems:
They change boot disk and restart OK, but when I later boot from the sierra disk again, the script icon starts bouncing in the dock immediately after startup. I click on it - nothing happens. I right-click and select quit - nothing happens, and I have to force-quit.
Could someone tell me what I have to change to fix it?
Here it is:
display dialog "STARTUP DISKNAME?" buttons {"Cancel", "OK"} default button "OK"
do shell script ¬
¬
"bless -mount \"/Volumes/DISKNAME\" -setBoot" user name "MY USERNAME" password "MY PASSWORD" with administrator privileges
tell application "Finder"
restart
end tell
Thank you.
最后更新:2017-09-21 04:24:16
上一篇:
World Clock widget gone in Sierra
下一篇:
Setting iPad Wallpaper in Profile Manager
apps/ringtones in iTunes 12.7
Black line on the dock
ios10
MBP Shutting Down
I downloaded IOS 11 but scheduled the installat...
Apple Watch attached to iPhone without sim card
Making events on Calender app more apparent.
delete items from reading list
The attempt to burn a disc failed. An unknown e...
Upgrade mac OS
相关内容
"com.apple.installer.pagecontroller error
any idea what error 3503 is?
Underallocation Detected on Main device
The operation couldn’t be completed. (BKA...
is ctoid.exe a virus on my ipad safari browser?
iTunes Error: Declined to authorize this image ...
Keep High Efficiency Original if Available Chec...
iTunes 12.7 cannot edit playlist
High Sierra Stuck & Decryption paused
Need to unlock iphone 5 to reactivate the phone...
热门内容
Christian Music Removed From Itunes
I'm being billed twice every month for Apple Mu...
iMac running slow
Fix disappearing album art after moving iTunes
Activation Locked iWatch
Can I change the iwatch to miles instead of kil...
I keep seeing the "You don't have permission to...
can't read any menus macbook air
iPad 2, iOs9.3, taking days to restore
charges made under itune memeberships