Page 1 of 1

Rule depending ob exct size of a file

PostPosted: Fri Jan 19, 2024 1:50 am
by masaga
hi folks!
I created rules which search for (extension) "bmp" AND filesize exact (f.i.) 25KB, 51KB, 308KB ...
There are 5 such rules which different filesizes, which should sort these Pics into different folders depending on the filesize.
Even when a file is exact (measured by MacOS, file-information) the rule doest work. ("size is...")
But when I write the rule .... "size is less than 27KB" (the exact filesize of 25 plus 2) and the next rule "filesize under 55 (51 plus 4) this works. But only if I manage to sort out in this special order from the smallest to the biggest filesize.
Is the way Hazel measures the filesize a different one as MacOS?
kind regards
Sandro

Re: Rule depending ob exct size of a file

PostPosted: Fri Jan 19, 2024 9:32 am
by Mr_Noodle
Where exactly are you getting your filesize info?

Re: Rule depending ob exct size of a file

PostPosted: Fri Jan 19, 2024 9:37 am
by masaga
Mr_Noodle wrote:Where exactly are you getting your filesize info?


... in the Finder (MacOS), right-click - Information:

Image

Re: Rule depending ob exct size of a file

PostPosted: Mon Jan 22, 2024 9:51 am
by Mr_Noodle
That's not precise enough. For example, if it's 25,392, it will still show up as 25K but still not be equal to 25K.

You really should be using ranges or, if the size is consistent down to the byte, the actually amount in bytes.

Re: Rule depending ob exct size of a file

PostPosted: Mon Jan 22, 2024 9:55 am
by masaga
Mr_Noodle wrote:That's not precise enough. For example, if it's 25,392, it will still show up as 25K but still not be equal to 25K.
You really should be using ranges or, if the size is consistent down to the byte, the actually amount in bytes.


I understand, thank you!!! kind regards!