Last active
August 29, 2015 14:17
-
-
Save yxjxx/ea1b89670a0f001052f4 to your computer and use it in GitHub Desktop.
wifi_sharing.applescript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "System Preferences" | |
quit | |
end tell | |
delay 1 | |
tell application "System Preferences" | |
activate | |
end tell | |
tell application "System Events" | |
tell process "System Preferences" | |
click button "Sharing" of scroll area 1 of window "System Preferences" | |
delay 2 | |
tell window "Sharing" | |
click checkbox 1 of row 7 of table 1 of scroll area 1 of group 1 | |
delay 1 | |
if (exists sheet 1) then | |
click button "Start" of sheet 1 | |
end if | |
end tell | |
end tell | |
end tell | |
tell application "System Preferences" | |
quit | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment