simple script limit to a folder size

Goodmoring @t.spoon i wasn’t able to looking into it last week. This week I will. So very thanks for the help it would be sure more elagant if it work that way:) let you if its work out.

@Yvan haha I was thinking the same but I was very glad you helpt me already this much.

Im gonna try/test my self today or tomorrow!

Ha Yvan, yes that looks much better! Could I get this one displaying the infos only if the physical size of the folder is greater than the predefined value?

Now its displaying the infos after every drop action and stops when the size is bigger than 1GB!

Oops, for tests I inverted the comparison and forgot to reset the original instruction.
The message is edited at the instruction :

 if currentSize > warnedSize then # OOPS, EDITED

As is, the size is displayed when the real size is greater than 800 MBytes.
If you want to change that, you must edit the instruction :

set warnedSize to oneMegaByte * 800

If you want to be warned only when the size is greater than one GByte, edit it as :

set warnedSize to oneMegaByte * 1024

I just thought that it may be useful to be alerted a bit before reaching the limit but 800 MByte may be too small as the size forcing the script to warn.

Yvan KOENIG running Sierra 10.12.5 in French (VALLAURIS, France) lundi 12 juin 2017 14:13:49