How can I turn on and off the wifi and bluetooth connections, change the sound and brightness levels on OSX?
Simply execute the right commands :-) You could probably even use AppleScript.
ifconfig en1 off or networksetup -setairportpower offIt's probably all possible without exec() calls, but it's easier this way.