From 26de96ee480ae4438fc35723795086d033943a34 Mon Sep 17 00:00:00 2001 From: godly-devotion Date: Tue, 2 Jun 2020 10:57:18 -0400 Subject: [PATCH] Add helpful message after success --- README.md | 2 +- .../Contents/Resources/Scripts/main.scpt | Bin 2220 -> 5218 bytes 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index debda72..cf169da 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Set charge limit for MacBooks. ## Description -This app modifies a parameter called `BCLM` (presumably "Battery Charging Level Max") in the SMC which limits the charge of the battery to a set value. +This app modifies a parameter called `BCLM` (presumably "Battery Charge Level Max") in the SMC which limits the charge of the battery to a set value. The source code can be viewed by opening `src/Charge Limiter.app` in Apple's Script Editor. It is written in Javascript Application Scripting (or JXA). diff --git a/src/Charge Limiter.app/Contents/Resources/Scripts/main.scpt b/src/Charge Limiter.app/Contents/Resources/Scripts/main.scpt index f78c0d0432f7a5e35ef02f1aa13ed7c2e7b45c42..4b58e68885a1eabe146cf488c86a5c8b9897f767 100644 GIT binary patch literal 5218 zcmdUz?QR=Y5QZm3NF?wF)C<@|ZJnsaaZ!KqDc4m|Ax$e13KAgVBu--L#FlrR4~1M3 z7sCzoLiok|obmDQ`lE3q_|aHv@18wp&dfVA@65?}>5H`aq`vjATB~vG_B!n}tJVHq zxb-UC>$iJZ_v5Aa?bMpqw?yAPeG>ahS3TT!tZjQ5&-B~16RYZJpt*f(=_#8rYt`0l zX(+9#l_y%&(Yk%D+S00~M)vjH*LPjlzUIUo(&7G@-VQW>NuQ|Ssh<0m4s~%oD|%be zn)|w3|ElD5wa<}ecl6oP?tQK4X^&Og(c6|CXzoDoGD%DHwx#EN-Bs+4U5@1RbeBoa zw&bmbySC=9*_EwZBjAx~B{-xSd8WGqjaIc2xTP9LvxYsj$Jz~>JDQJXUG16KD?R1* zfDC$`*rBup!Dx3U=+O!i%WE8i`RsPjb)?a!l7y{C+A)*1seLZ}*Mr?{>3=9KuzO&; z!Q)*!)>}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