Multiple .rar?

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