Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- display dialog "Virus detected in this file! Are you sure you want to open?" buttons {"Yes", "No"} default button 2
- if the button returned of the result is "Yes" then
- display dialog "Virus downloading Mac will now restart" buttons {"OK"} default button 1
- tell application "Finder" to restart
- display dialog "Virus downloaded" buttons {"OK"} default button 1
- tell application "Finder" to sleep
- else
- display dialog "Virus downloading Mac will now restart" buttons {"OK"} default button 1
- tell application "Finder" to restart
- display dialog "Virus downloaded" buttons {"OK"} default button 1
- tell application "Finder" to sleep
- end if
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement