![]() ![]() Set remaining to do shell script "ioreg -c AppleDeviceManagementHIDEventService | grep BatteryPercent | tail -1 | sed 's/]//g'"Įlse if finalDevice contains "Magic Mouse" then Set remaining to do shell script "ioreg -c AppleDeviceManagementHIDEventService | grep BatteryPercent | tail -2 | sed 's/]//g'" If finalDevice contains "Magic Mouse" then If finalDevice contains "Magic Keyboard" then set finalDevice to do shell script "ioreg -c AppleDeviceManagementHIDEventService | grep '\"Product\" =' | tail -2" Now I wanna to display my Magic Mouse and Magic Keyboard Battery on my touch bar, for this I was trying this code, but is not working. He accept some Apple Scripts for more dynamic, so I start to study this scripts. I'm using this BetterTouchToll for make my touch bar more interesting. Based on this question: Display Magic Mouse Battery in Touch bar using BetterTouchTool
0 Comments
Leave a Reply. |