How can I restart from an Apple script without warnings?
Solution 1:
Instead of telling System Events to restart, tell Finder.
tell application "Finder"
restart
end tell
Instead of telling System Events to restart, tell Finder.
tell application "Finder"
restart
end tell