Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Script to create an ad-hoc network to sync iPhone' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Script to create an ad-hoc network to sync iPhone
Authored by: KBoda on Oct 14, '09 04:15:25AM
(*Script for Creating ad-hoc network and turning on internet sharing,
A. Davis http://forums.macrumors.com/showthread.php?t=455614 for internet sharing

Modified by K.Boda on 14th October 2009 for Snow Leopard
First you have to go to the internet sharing pane and edit Airport options to secure your network with a password.
*)



tell application "System Preferences" to set current pane to pane "com.apple.preferences.sharing"
tell application "System Events" to tell process "System Preferences"
click checkbox 1 of row 11 of table 1 of scroll area 1 of group 1 of window "Sharing"
delay 1
if (exists sheet 1 of window "Sharing") then
click button "Start" of sheet 1 of window "Sharing"
end if
end tell
ignoring application responses
tell application "System Preferences" to quit
end ignoring


[ Reply to This | # ]