Rule depending ob exct size of a file

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Rule depending ob exct size of a file 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
masaga
 
Posts: 5
Joined: Sun Oct 09, 2022 12:56 am

Re: Rule depending ob exct size of a file Fri Jan 19, 2024 9:32 am • by Mr_Noodle
Where exactly are you getting your filesize info?
Mr_Noodle
Site Admin
 
Posts: 11255
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Rule depending ob exct size of a file 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
masaga
 
Posts: 5
Joined: Sun Oct 09, 2022 12:56 am

Re: Rule depending ob exct size of a file 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.
Mr_Noodle
Site Admin
 
Posts: 11255
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Rule depending ob exct size of a file 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!
masaga
 
Posts: 5
Joined: Sun Oct 09, 2022 12:56 am


Return to Support