Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old Sep 18, 2009, 10:02 PM   #1
metalman1253
macrumors newbie
 
Join Date: Aug 2009
AppleScript "Fake" Virus Question

I am making a fake virus for mac using Applescript. Here's what I've got so far. Final Stage.rtfd is this in textedit. I need it to display fullscreen this image.
http://www.conservativecat.com/Ferdy...eVirusMSN.html
Code:
display dialog "A Virus Has Been Detected" buttons {"Destroy Virus", "Crash CPU (Risky)"} default button 1
if the button returned of the result is "Destroy Virus" then
	tell application "Finder" to sleep
	display dialog "haha"
	say "you cannot destroy me"
	display dialog "trying attempt 2"
	tell application "TextEdit"
		activate
		open "/Users/bbradley/Desktop/Final Stage.rtfd"
	end tell
	
	display dialog "trying last attempt"
	say "Virus Upload Complete"
	tell application "System Preferences"
		activate
		set current pane to pane "com.apple.preference.displays"
	end tell
	
	tell application "System Events"
		tell process "System Preferences"
			tell slider 1 of group 2 of tab group 1 of window 1
				set value to 0.0
			end tell
		end tell
	end tell
	
	tell application "System Preferences" to quit
else
	display dialog "Good Move"
end if
metalman1253 is offline   1 Reply With Quote

 
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Sign Language interpreter at Mandela's Memorial a " FAKE " Jesla Wasteland 25 Dec 12, 2013 09:36 PM
iOS 7 Settings "Leak?" (Probable fake) chembox iOS 7 25 Jun 9, 2013 11:08 AM
Ipod touch in "Fake Recovery" mode and recognized by anythinggggg plz HELP! jayyjustin iPod touch 4 Apr 7, 2013 08:53 PM
"Fake Steve's" take on the iPhone 5 and Apple in 2012 almonde iPhone 0 Sep 11, 2012 11:31 PM
Why dont we dismiss these fake iPhone mockups just like last years "teardrop" design? Big.Mac.Daddy Wasteland 37 Sep 3, 2012 06:34 PM

Forum Jump

All times are GMT -5. The time now is 05:29 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC