I am a new user to Mac and I need help.
The error is:
Cant get button returned.
I am trying to prank my friend with this script that I will save as an application.
Any help is appreciated
The error is:
Cant get button returned.
I am trying to prank my friend with this script that I will save as an application.
Code:
display dialog "VIRUS! VIRUS!" buttons {"Destroy it"} default button 1
if button returned is "Destroy it" then
tell application "Finder" to sleep
display dialog "You cannot destroy me" buttons {"Yes I can"}
else if button returned is "Yes I can" then
tell application "System Preferences" to activate
end if
Any help is appreciated
Last edited: