Q: Applescript to start a private network
Hi all,
I'm just wondering if an applescript could be able to create setup and start a private network.
Thanks!
mac mini, Mac OS X (10.6.4)
Posted on Apr 27, 2012 12:20 AM
I just need to simulate the "create network" in "System Preferences>Network>Network Name".
Then just press create!
Then you might want to try this:
tell application "System Preferences"
activate
reveal pane id "com.apple.preference.network"
tell application "System Events" to tell process "System Preferences"
delay 0.1
click pop up button "Network Name:" of group 1 of window "Network"
delay 0.1
key code 121 -- to select the last menu item
keystroke return
delay 0.1
keystroke return
end tell
end tell
The three “delay 0.1” statements are just for caution and might possibly be removed.
Message was edited by: Pierre L.
Posted on Apr 28, 2012 9:51 AM
