Page 1 of 1

Multiple .rar?

PostPosted: Mon Jun 18, 2012 3:26 am
by Svingen
Hi

First of all, im really new to Hazel but it seems like a very handy piece of software.

I have manage to get Hazel to search in subfolder and i have even gotten it to unrar
files as soon as they appear. Now to my problem.

How do i handle files that looks like this:

*.part01.rar
*.part02.rar
*.part03.rar
etc

When i unrar i use a script that looks like this:
unrar e -o+ "$1"

Any suggestions?

Had a idea that i could rename all of the files starting with *.part02.rar to *.part02.002
but i have no idea how to do that.

Now to my second small problem. When i use the unrar e -o+ "$1" string for some reason it places the unrared file a folder above where the rar file is, any idea on how to fix that?

Thanks in advance
Svingen

Re: Multiple .rar?

PostPosted: Tue Jun 19, 2012 4:09 pm
by Mr_Noodle
Hazel's unarchive action handles multipart rars. Is it not working for you?

Re: Multiple .rar?

PostPosted: Tue Jun 19, 2012 4:39 pm
by Svingen
Mr_Noodle wrote:Hazel's unarchive action handles multipart rars. Is it not working for you?


Yeah, it works wonderfully EXCEPT unarchive removes the archive-files. I rather have them saved and use another rules to erase them when x days old.

If you could tell me how to get unarchive to save the files that would be really really nice.

//Svingen

Re: Multiple .rar?

PostPosted: Wed Jun 20, 2012 2:08 pm
by Mr_Noodle
If you want to keep the original archives, you need to copy the archives elsewhere and then open them and, depending on what you want, move the result back.