Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. display dialog "A virus has been detected! Ignore?" buttons {"Yes", "No"} default button 2
  2. if the button returned of the result is "Yes" then
  3.     display dialog "Your computer has malfunctioned. Restart?" buttons {"OK", "Cancel"} default button 1
  4.     if the button returned of the result is "OK" then
  5.         tell application "Finder"
  6.             restart
  7.         end tell
  8.     else
  9.         display dialog "Your computer has malfunctioned. Restart?" buttons {"OK", "Cancel"} default button 1
  10.         if the button returned of the result is "OK" then
  11.             tell application "Finder"
  12.                 restart
  13.             end tell
  14.         else
  15.             tell application "Finder"
  16.                 restart
  17.             end tell
  18.            
  19.         end if
  20.     end if
  21. else
  22.     display dialog "To delete the virus, you must restart the computer. Restart?" buttons {"OK", "Cancel"} default button 2
  23.     if the button returned of the result is "OK" then
  24.         tell application "Finder"
  25.             restart
  26.         end tell
  27.     else
  28.         display dialog "Your computer has malfunctioned. Restart?" buttons {"OK", "Cancel"} default button 1
  29.         if the button returned of the result is "OK" then
  30.             tell application "Finder"
  31.                 restart
  32.             end tell
  33.         else
  34.             tell application "Finder"
  35.                 restart
  36.             end tell
  37.            
  38.         end if
  39.     end if
  40. end if
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement