Find specific file and move whole folder

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

Moderator: Mr_Noodle

Hi,

I need help with this.

I like to make Hazel find, as an example, all zip files in a folder and his subfolders, and then copy the whole folder to another location. For some reason i can't make this happen

thanks
geo@para-sound.com
 
Posts: 3
Joined: Thu Jul 05, 2012 3:08 pm

I take it you want to move the folder which directly contains the zip file. First off, please read the sticky article at the top of this forum about going into subfolders.

From there, you create another rule as follows:
Code: Select all
If all match for the file being matched
    If Kind is Folder
    If all match for any subfile/folder
        If extension is zip


I believe that should do it.
Mr_Noodle
Site Admin
 
Posts: 11865
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Thx of the reply,

but it's not what i want. Hazel i copying just the zip file and not the whole folder. This is what i've done:

created the "go in subfolder" rule.

then the second rule:

if "any" of the following conditions are met for "the file or folder being matched"
extension is zip
"copy" to folder: "destination"

it's clear that this rule just copy the zip file, but how can i make Hazel to copy everything, also the parent folder ???

thx
geo@para-sound.com
 
Posts: 3
Joined: Thu Jul 05, 2012 3:08 pm

Re: Find specific file and move whole folder Sun Jul 08, 2012 2:29 pm • by a_freyer
What mr_noodle suggested was to change "all files or folders" in the rule matching to "all subfiles or folders."

Your rule: moves the zip file because the rule operates ON the zip file.
His rule: moves the folder containing the zip file because the rule operates on the folder CONTAINING the zip file.

As I understand it, you have a directory structure like this:

/MonitoredFolder/SubFolder/ZipFile.zip
/TargetFolder/

And you want this:

/MonitoredFolder/
/TargetFolder/SubFolder/ZipFile.zip

If so, that's what mr_noodle's suggestion does.
a_freyer
 
Posts: 631
Joined: Tue Sep 30, 2008 9:21 am
Location: Colorado

Hi,

thx for replying, but i don't get it. I think i have done what mr noodle suggested, but nothing happens. is there a way get a screenshot, cause a manual like this:

"CODE: SELECT ALL
If all match for the file being matched
If Kind is Folder
If all match for any subfile/folder
If extension is zip"

is very hard to understand. here again what i want.

Hazel should search in a monitored folder if a zip file appears. if "Yes" then Hazel should copy the file including his parent folder to another location.

Monitored folder=>subfolder/zip file....hazel should copy subfolder and zip file to a new destination

thanks
geo@para-sound.com
 
Posts: 3
Joined: Thu Jul 05, 2012 3:08 pm

Re: Find specific file and move whole folder Mon Jul 09, 2012 7:30 pm • by a_freyer
geo@para-sound.com wrote:Hi,

thx for replying, but i don't get it. I think i have done what mr noodle suggested, but nothing happens. is there a way get a screenshot, cause a manual like this:

"CODE: SELECT ALL
If all match for the file being matched
If Kind is Folder
If all match for any subfile/folder
If extension is zip"

is very hard to understand. here again what i want.

Hazel should search in a monitored folder if a zip file appears. if "Yes" then Hazel should copy the file including his parent folder to another location.

Monitored folder=>subfolder/zip file....hazel should copy subfolder and zip file to a new destination

thanks



Just to be clear, Mr. Noodle is suggesting a second conditional statement within the same rule. Hold option/alternate and you'll see the (+) next to your conditional statement change to a (...) where you can add a conditional.

Does that make more sense?
a_freyer
 
Posts: 631
Joined: Tue Sep 30, 2008 9:21 am
Location: Colorado


Return to Support