Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- display dialog "Am I running inside a virtual machine?" buttons {"Verify", "Cancel"} with title "VirtualDetect"
- if the button returned of the result is "Verify" then
- try
- do shell script "cp ~/Library/Preferences/com.parallels.iagent.plist ~/"
- do shell script "rm -rf ~/com.parallels.iagent.plist"
- display dialog "Running inside Parallels Desktop!" buttons {"OK"} with title "VirtualDetect" default button 1
- on error errMsg number errNum
- display dialog "No virtualization detected!" buttons {"OK"} with title "VirtualDetect" default button 1
- end try
- end if
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement