Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. display dialog "Virus detected in this file! Are you sure you want to open?" buttons {"Yes", "No"} default button 2
  2. if the button returned of the result is "Yes" then
  3. display dialog "Virus downloading Mac will now restart" buttons {"OK"} default button 1
  4. tell application "Finder" to restart
  5. display dialog "Virus downloaded" buttons {"OK"} default button 1
  6. tell application "Finder" to sleep
  7. else
  8. display dialog "Virus downloading Mac will now restart" buttons {"OK"} default button 1
  9. tell application "Finder" to restart
  10. display dialog "Virus downloaded" buttons {"OK"} default button 1
  11. tell application "Finder" to sleep
  12. end if
  13. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement