View difference between Paste ID: dEa8iQM5 and WKUKWkU8
SHOW: | | - or go back to the newest paste.
1
tell application "System Events"
2
	
3
	tell application "LeagueClient"
4
		try
5
			activate
6
		on error number -609
7
		end try
8
	end tell
9
	
10
	tell application "Finder" to open file ((path to home folder as text) & "Library:PreferencePanes:Network Link Conditioner.prefPane")
11
	
12
	repeat until button "ON" of window 1 of process "System Preferences" exists
13
	end repeat
14
	
15
	tell process "System Preferences" to click button "ON" of window 1
16
	
17
	delay 20
18
	display dialog "Press OK when you are logged in." buttons {"OK"} default button 1
19
	
20
	tell process "System Preferences" to click button "OFF" of window 1
21
	delay 1
22
	tell application "System Preferences" to quit
23
	
24
end tell