Managing multi-part RAR files

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?
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?