behumble/desktop-cctv

Remove image folders older than two days or more

behumble opened this issue · 1 comments

the image size from the Retina display is relatively large.

a single file can take up to 10MiB

-rw-r--r--@ 1 behumble  staff  2843441  5 19 22:04 22_04_31-Color LCD.png
-rw-r--r--@ 1 behumble  staff   346418  5 19 22:05 22_05_00-Color LCD.png
-rw-r--r--@ 1 behumble  staff   415347  5 19 22:06 22_06_00-Color LCD.png
-rw-r--r--@ 1 behumble  staff   415347  5 19 22:07 22_07_00-Color LCD.png
-rw-r--r--@ 1 behumble  staff   433675  5 19 22:08 22_08_00-Color LCD.png
-rw-r--r--@ 1 behumble  staff  3396079  5 19 22:09 22_09_00-Color LCD.png
-rw-r--r--@ 1 behumble  staff  1274878  5 19 22:10 22_10_00-Color LCD.png
-rw-r--r--@ 1 behumble  staff   229128  5 19 22:11 22_11_00-Color LCD.png
-rw-r--r--@ 1 behumble  staff   228984  5 19 22:12 22_12_00-Color LCD.png
-rw-r--r--@ 1 behumble  staff   228984  5 19 22:13 22_13_00-Color LCD.png
-rw-r--r--@ 1 behumble  staff   228984  5 19 22:14 22_14_00-Color LCD.png
-rw-r--r--@ 1 behumble  staff  3433544  5 19 22:15 22_15_00-Color LCD.png
-rw-r--r--@ 1 behumble  staff  3744408  5 19 22:16 22_16_00-Color LCD.png
-rw-r--r--@ 1 behumble  staff   552382  5 19 22:17 22_17_00-Color LCD.png
-rw-r--r--@ 1 behumble  staff  9619233  5 19 22:18 22_18_00-Color LCD.png
-rw-r--r--@ 1 behumble  staff  9619291  5 19 22:19 22_19_00-Color LCD.png
-rw-r--r--@ 1 behumble  staff  9619204  5 19 22:20 22_20_00-Color LCD.png
-rw-r--r--@ 1 behumble  staff  9619195  5 19 22:21 22_21_00-Color LCD.png
-rw-r--r--@ 1 behumble  staff  9619225  5 19 22:22 22_22_00-Color LCD.png
-rw-r--r--@ 1 behumble  staff  9619266  5 19 22:23 22_23_00-Color LCD.png
-rw-r--r--@ 1 behumble  staff  9619128  5 19 22:24 22_24_00-Color LCD.png
-rw-r--r--@ 1 behumble  staff  8163408  5 19 22:25 22_25_00-Color LCD.png
-rw-r--r--@ 1 behumble  staff  3389526  5 19 22:26 22_26_00-Color LCD.png
-rw-r--r--@ 1 behumble  staff   432239  5 19 22:27 22_27_00-Color LCD.png
-rw-r--r--@ 1 behumble  staff  3753838  5 19 22:28 22_28_00-Color LCD.png
-rw-r--r--@ 1 behumble  staff  3190590  5 19 22:29 22_29_00-Color LCD.png
-rw-r--r--@ 1 behumble  staff  1634468  5 19 22:30 22_30_00-Color LCD.png
-rw-r--r--@ 1 behumble  staff  1827007  5 19 22:31 22_31_00-Color LCD.png
-rw-r--r--@ 1 behumble  staff  1754394  5 19 22:32 22_32_00-Color LCD.png
-rw-r--r--@ 1 behumble  staff  2431905  5 19 22:33 22_33_00-Color LCD.png
-rw-r--r--@ 1 behumble  staff  1202640  5 19 22:34 22_34_00-Color LCD.png
-rw-r--r--@ 1 behumble  staff  1363879  5 19 22:35 22_35_00-Color LCD.png
-rw-r--r--@ 1 behumble  staff  1363988  5 19 22:36 22_36_00-Color LCD.png
-rw-r--r--@ 1 behumble  staff  1368526  5 19 22:37 22_37_00-Color LCD.png
-rw-r--r--@ 1 behumble  staff  1381476  5 19 22:38 22_38_00-Color LCD.png
-rw-r--r--@ 1 behumble  staff  1385918  5 19 22:39 22_39_00-Color LCD.png
-rw-r--r--@ 1 behumble  staff  1390415  5 19 22:40 22_40_00-Color LCD.png
-rw-r--r--@ 1 behumble  staff  1530642  5 19 22:41 22_41_00-Color LCD.png

using jpg instead of png doesn't help (jpg is spending more space in this case)

➜  Desktop screencapture cap.png
➜  Desktop open cap.png 
➜  Desktop open cap.jpg
The file /Users/user/Desktop/cap.jpg does not exist.
➜  Desktop screencapture cap.jpg
➜  Desktop ls -l cap.*
-rw-r--r-- 1 user 2261109 May 20 06:40 cap.jpg
-rw-r--r-- 1 user 2245887 May 20 06:40 cap.png
➜  Desktop ls -lh cap.*
-rw-r--r-- 1 user 2.2M May 20 06:40 cap.jpg
-rw-r--r-- 1 user 2.2M May 20 06:40 cap.png