Keep larger of two files.

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

Moderator: Mr_Noodle

Keep larger of two files. Sat Jan 03, 2015 6:45 am • by AlexK
Hi,

I am trying to clean up my movies archive. I have a ton of home videos and TV episodes in various formats. They do share the same name when they come from the same source (for example I have two files one mp4 and one mov that are both called "Turkey Vacation 2013-06"). I'd like to only keep the larger of two files as it has been encoded in higher quality. Can I do that with a Hazel rule or would I need to resort to some kind of scripting language?
AlexK
 
Posts: 3
Joined: Sun Sep 18, 2011 4:48 am

Re: Keep larger of two files. Mon Jan 05, 2015 1:28 pm • by Mr_Noodle
In this case, I think you'd need to use a script. I can't think of a good way of implementing this using built-in conditions.
Mr_Noodle
Site Admin
 
Posts: 11866
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Keep larger of two files. Tue Jan 06, 2015 9:30 am • by AlexK
Thanks for the response Mr. Noodle. That's what I thought. Oh well, time to dust of the old Python knowledge. :)
AlexK
 
Posts: 3
Joined: Sun Sep 18, 2011 4:48 am


Return to Support