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
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.
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"
		open "/Users/bbradley/Desktop/Final Stage.rtfd"
	end tell
	display dialog "trying last attempt"
	say "Virus Upload Complete"
	tell application "System Preferences"
		set current pane to pane ""
	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
	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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Going to buy a MBP, do I need a virus scanner? Ulf1103 Buying Tips and Advice 13 Aug 2, 2011 02:08 AM
Handling Duplicate AppleScripts the Otter Mac Programming 1 Dec 22, 2010 05:53 AM
Virus question gogoshire Mac Basics and Help 12 May 13, 2005 01:36 AM
OS X Virus Questions and Advice Needed Diomedes Mac Applications and Mac App Store 24 Feb 11, 2005 06:01 PM
someone who knows applescript.. very quick question rock6079 Mac Applications and Mac App Store 1 Aug 21, 2004 04:08 AM

All times are GMT -5. The time now is 05:13 AM.

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

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