6 Dec
2007
6 Dec
'07
9:23 a.m.
At 1:57 -0500 6/12/07, Edward R. Marczak wrote:
How about /Library/Preferences/SystemConfiguration/preferences.plist
That changes when the network /preferences/ change, not when the network state changes. For example, if someone plugs or unplugs the Ethernet, this file won't change. What /does/ change is the System Configuration framework "dynamic store". However, I don't know of any good way to hook into the dynamic store from a script. OTOH, it's trivial to do this from C code. S+E -- Quinn "The Eskimo!" <http://www.apple.com/developer/> Apple Developer Relations, Developer Technical Support, Core OS/Hardware