>I just use a script to handle all battery events that checks the state >of the AC adapter and acts accordingly. > > Thanks. That should do the trick. Robert.