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: Shane Stanley <email@hidden>
- Date: Thu, 16 Apr 2015 09:32:27 +1000
On 16 Apr 2015, at 3:35 am, 2551 <email@hidden> wrote:
>
> 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"
It returns 59 here, against 100 in the menu (which I don't believe).
> That does prove it can be done either in Cocoa or AppleScript (and if it can be done in Cocoa it can be done in AppleScript these days).
>
> So, anyone know what API or shell program that's based on?
IOService is actually a low-level C++-based API used for programming device drivers, so you probably don't want to go there.
--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>
_______________________________________________
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