Page 1 of 1

Managing multi-part RAR files

PostPosted: Wed Jun 10, 2009 1:26 pm
by knidsrok
As anybody come up with a good script or set of rules to help Hazel unarchive multi-part RAR archives, and then move the components to the trash?

The short shell script I got from does a good job w/ single-part RAR files, but with rar archives broken into multiple files, it attempts to run the script on all of the component parts, resulting in a number of error messages, and, since the shell script fails, it never gets to the "move to trash" action.

Thus, my downloads folder is left with all of the part2, part3, etc rars, which sit there and kick up error messages every time Hazel runs. Is there a way to get Hazel to move these files to the trash, but only if part 1 was successfully unpacked?

Re: Managing multi-part RAR files

PostPosted: Thu Jun 11, 2009 12:01 pm
by a_freyer
I'd try opening them with UnRarX or something similar and scripting that.

Re: Managing multi-part RAR files

PostPosted: Sat Jun 13, 2009 2:49 pm
by Mr_Noodle
Right now, Hazel is not particularly good at dealing with dependencies between files.

Also, in the latest beta (check the beta forums), I did add support for unrar to the "Unarchive" action but it won't handle the multipart case which is something I'll look into.