Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tell application "System Events"
- tell application "LeagueClient"
- try
- activate
- on error number -609
- end try
- end tell
- tell application "Finder" to open file ((path to home folder as text) & "Library:PreferencePanes:Network Link Conditioner.prefPane")
- repeat until button "ON" of window 1 of process "System Preferences" exists
- end repeat
- tell process "System Preferences" to click button "ON" of window 1
- delay 20
- display dialog "Press OK when you are logged in." buttons {"OK"} default button 1
- tell process "System Preferences" to click button "OFF" of window 1
- delay 1
- tell application "System Preferences" to quit
- end tell
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement