- Code: Select all
tell application "Finder" to sleep
display dialog "Hello, my name is Jose. I am going to mess with your computer." buttons {"Fuck you", "I bet you can't"} default button 2
if the button returned of the result is "Fuck you" then
tell application "System Preferences"
activate
set current pane to pane "com.apple.preference.displays"
end tell
tell application "System Events"
tell process "System Preferences"
tell slider 1 of group 2 of tab group 1 of window 1
set value to 0.0
end tell
end tell
end tell
tell application "System Preferences" to quit
repeat
set volume 16
say "virus alert"
tell application "TextEdit"
activate
make new document
set the name of the front window to "hahahaha"
set the text of the front document to "Neener Neener! You have been infected!"
end tell
end repeat
set volume 16
say "uploading virus"
say "virus upload complete"
else
tell application "System Preferences"
activate
set current pane to pane "com.apple.preference.displays"
end tell
tell application "System Events"
tell process "System Preferences"
tell slider 1 of group 2 of tab group 1 of window 1
set value to 0.0
end tell
end tell
end tell
tell application "System Preferences" to quit
end if
repeat
set volume 16
say "virus alert"
tell application "TextEdit"
make new document
set the name of the front window to "hahahaha"
set the text of the front document to "Neener Neener! You have been infected!"
end tell
end repeat
This script makes your computer sleep, then a dialogue box saying "Hi, my name is Jose. I am going to mess with your computer." pops up.
Two buttons appear, one saying fuck you, the other saying I bet you can't. The following will happen when either button is pressed:
Screen brightness will be turned down, volume will be set to the max, a computer voice will say uploading virus, virus upload complete. Then infinite windows of text edit will be spawned saying neener neener you have been infected. Since it's on repeat it's impossible to turn off the volume and keep it from going to max and shouting virus alert without force quitting applescript editor which most people won't think to do.
Feel free to use this code to troll anyone, I hope you enjoy!



