Post Reply 
Just recovered from not crashing my mac
Author Message
xero1
Love Mage/Red Mage LV: 99/75

Posts: 1,193.1964
Threads: 136
Joined: 14th Apr 2007
Reputation: -2.36942
E-Pigs: 51.3231
Offline
Post: #11
RE: Just recovered from not crashing my mac

Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
set white_list to {"Finder"}

try
	tell application "Finder"
		set process_list to the name of every process whose visible is true
	end tell
	repeat with i from 1 to (number of items in process_list)
		set this_process to item i of the process_list
		if this_process is not in white_list then
			tell application this_process
				quit
			end tell
		end if
	end repeat
on error
	tell the current application to display dialog "Ohh crap I screwed up ;(... Good by......" buttons {"Quit"} default button 1 with icon 0
end try


;)

15/03/2008 03:50 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

 Quick Theme: