Re: is the ouput of this script accurate?
Re: is the ouput of this script accurate?
- Subject: Re: is the ouput of this script accurate?
- From: Robert Poland <email@hidden>
- Date: Wed, 15 Apr 2015 12:11:22 -0600
- Z-usanet-msgid: XID105TDosLX6928X31
> On Apr 15, 2015, at 11:35:AM, 2551 <email@hidden> wrote:
>
> Hi List
>
>
> A user has asked me to provide a script that will monitor the battery level of Apple bluetooth devices (keyboard, magic trackpad, mouse).
>
> I looked at the bluetooth.framework api but didn't find anything obvious. However, a bit of googling threw up some ioreg shell commands. My problem is that while this approach returns results consistent with what is reported in my System Prefs and Bluetooth Status bar menu for both my trackpad and magic mouse, it doesn't do so for my keyboard. The Status bar menu has my keyboard at 80% while ioreg reports it at a significantly lower 45%.
>
> Since I only have one keyboard, I can't test whether this is a problem with my device. I'd be grateful if any of you could confirm whether the following script outputs a BatteryPercent the same as that shown in your Bluetooth status bar menu (or Bluetooth sysetem prefs).
>
> do shell script "ioreg -c AppleBluetoothHIDKeyboard | grep BatteryPercent"
>
>
> TIA
>
>
> Phil
There is a Widget named MightyMonitor that can be added and does that in the Dashboard.
Robert Poland
Fort Collins CO
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden