This AppleScript launches the macOS screensaver to create the appearance of an unresponsive system, then plays a voice message saying, “Uh oh. Something went wrong.” The combination can be used for testing reactions or demonstrating AppleScript’s ability to control system functions.
Click to view script…
do shell script "open /System/Library/CoreServices/ScreenSaverEngine.app"
delay 2
say "Uh oh. Something went wrong."