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

Click here to return to the '10.5: An AppleScript to restart an AirPort Base Station' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.5: An AppleScript to restart an AirPort Base Station
Authored by: gettes on Mar 11, '10 07:44:45PM
here is some code to help find the airport device your are interested in restarting in the list... apply to your taste...
tell application "AirPort Utility" to activate
tell application "System Events"
	tell application process "AirPort Utility"
			repeat with n in {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}
				set theThing to value of text field 1 of row n of table 1 of scroll area 1 of window 1
				log theThing
                                -- call a restart routine here - click this row first
			end repeat
		on error from obj to newClass
			log {"end of list:", obj, newClass} -- Display from and to info in log window.
		end try
	end tell
end tell
have fun!

[ Reply to This | # ]