AppleScript名:バッテリの容量を取得する |
–バッテリ容量 set cap to (do shell script "ioreg -l | grep MaxCapacity | sed ’s/^.*MaxCapacity\" = \\([0-9]*\\)$/\\1/g’") as {number, anything} |
More from my site
(Visited 40 times, 1 visits today)
AppleScript名:バッテリの容量を取得する |
–バッテリ容量 set cap to (do shell script "ioreg -l | grep MaxCapacity | sed ’s/^.*MaxCapacity\" = \\([0-9]*\\)$/\\1/g’") as {number, anything} |