adjust battery-warning-level of magic mouse
This thread has some scripts that can help you.

It seems that you wrap the results of this shell snippet in a nice AppleScript:

ioreg -c BNBMouseDevice | grep BatteryPercent