Hi, yesterday i went to an apple store asking for assistance on "vintage" MBP (yep, they will not give assistance on 4 or 5 y/o products) and i took advantage to ask the best battery usage for my new rMBP.
He said me that the best practice is to let the battery electrons flow as much as possible and to not use the laptop always connected to the power AC adapter.
So he adviced me to always cycle 0<->100% (though i've read on the web also to make a 50<->100% half cycle) to get the best battery capacity along more time.
Got this advice i tought "ok, i'll do", but at the same time i tought also "well, ok, i'm working all day long with my laptop, when it's going under 20% battery capacity OSX alerts me with an alert window, but when i connect the laptop to the A/C adapter and raise to 100% full charge, i could easily forget it as i could be so deeply busy in work to not check the battery level on the top right corner, or totally lack of care at the battery led! (yes, it could sound strange, but we are humans, strange things can happen!!!
)"
"I need an alert also when i get 100% battery level!"
I took the plunge and i tought to automator!
By surfing here and there on the web i've found the way to make a conditional script that alerts me when the battery is under 5% and when is over 99%, including voices, beeps and window alerts.
Here it is:
Now where's my problem? Running it constantly.
Could be this app/workflow used as background process that checks every 'n' time the battery status?
Something like the "unknow always present" processes that you see into the activity monitor app?
Thank you!!
He said me that the best practice is to let the battery electrons flow as much as possible and to not use the laptop always connected to the power AC adapter.
So he adviced me to always cycle 0<->100% (though i've read on the web also to make a 50<->100% half cycle) to get the best battery capacity along more time.
Got this advice i tought "ok, i'll do", but at the same time i tought also "well, ok, i'm working all day long with my laptop, when it's going under 20% battery capacity OSX alerts me with an alert window, but when i connect the laptop to the A/C adapter and raise to 100% full charge, i could easily forget it as i could be so deeply busy in work to not check the battery level on the top right corner, or totally lack of care at the battery led! (yes, it could sound strange, but we are humans, strange things can happen!!!
"I need an alert also when i get 100% battery level!"
I took the plunge and i tought to automator!
By surfing here and there on the web i've found the way to make a conditional script that alerts me when the battery is under 5% and when is over 99%, including voices, beeps and window alerts.
Here it is:
Code:
set Cap to (do shell script "ioreg -w0 -l | grep ExternalChargeCapable")
tell Cap to set {wallPower} to {last word of paragraph 1}
set Cap to (do shell script "ioreg -wO -l | grep Capacity")
tell Cap to set {Available, Max} to {last word of paragraph 2, last word of paragraph 1}
set Pct to round (100 * Available / Max)
if Pct ≥ 99
then
set volume 3
beep 2
do shell script "say -v \"Alex\" \"Disconnect the charger, your laptop is fully charged, 100%!\" "
display dialog "Disconnect the charger, your laptop is fully charged, 100%!"
else if Pct ≤ 5
then
set volume 3
beep 2
do shell script "say -v \"Alex\" \"Connect the charger, your laptop is under 5%\""
display dialog "Connect the charger, your laptop is under 5%"
end if
end if
Now where's my problem? Running it constantly.
Could be this app/workflow used as background process that checks every 'n' time the battery status?
Something like the "unknow always present" processes that you see into the activity monitor app?
Thank you!!
Last edited: