Page 1 of 1
Moving structured Files + leaving original folder structure

Posted:
Sat Jan 25, 2014 1:10 am
by rellimbor
How do I
>MOVE files in their original folder structure
WHILE
>Preserving the original folder structure (which will then be empty)
?
Re: Moving structured Files + leaving original folder struct

Posted:
Tue Jan 28, 2014 1:14 pm
by Mr_Noodle
Can you provide an expanded description of what you are trying to do exactly?
Re: Moving structured Files + leaving original folder struct

Posted:
Wed Jan 29, 2014 6:32 pm
by rellimbor
I have an existing hierarchical folder structure containing files. Say:
ROOT
FOLDER 1
file1
file2
SUBFOLDER 1
file3
I want to:
1. MOVE all of that to a different root folder
BUT
2. LEAVE just the original folders in the original location
-SAME THING AS-
1. COPY all of that to a different root folder
AND
2. DELETE all the files
so I would end up with:
ROOT
FOLDER 1
SUBFOLDER 1
and
NEWFOLDER
FOLDER 1
file1
file2
SUBFOLDER 1
file3
CLEAR?
THANK YOU.
Re: Moving structured Files + leaving original folder struct

Posted:
Thu Jan 30, 2014 3:06 pm
by Mr_Noodle
In that case, you'll need to have Hazel go into subfolders and process the files within. See the sticky article at the top of this forum on how get Hazel to do that.
From there, create the rule to match the files and move them. In the move action, you can set it to copy over the folder structure. Set it to copy from the monitored folder.
Re: Moving structured Files + leaving original folder struct

Posted:
Thu Jan 30, 2014 4:36 pm
by rellimbor
EVERYTHING WORKS, except it doesn't place the folder structure into a folder with the same name as the Monitored folder. How do I make Hazel copy into a folder with the same name as the Monitored folder?
EXAMPLE
The monitored folder is Folder 1:
...
FOLDER 1
file1
file2
SUBFOLDER 1
file3
When it moves, I end up with:
...
file1
file2
SUBFOLDER 1
file3
RULES USED
1. RUN RULES ON FOLDER CONTENTS (per your sticky article)
2. IF date last modified is before this year
and
IF kind is not folder
THEN
move to folder XXX (options: copy folder structure from monitored folder)
[img][/Users/miller/Desktop/rule2a.tiff]
[img][/Users/miller/Desktop/rule2b.tiff]
Re: Moving structured Files + leaving original folder struct

Posted:
Fri Jan 31, 2014 3:55 pm
by Mr_Noodle
The images aren't coming through. You need to upload them to some service where you can then get a public link to them.
That said, in your example, it is correct. If you are monitoring FOLDER 1, then the files at the destination will be at the top level. If you want the destination files under FOLDER 1, you need to either (a) monitor the folder that contains FOLDER 1 or (b) create FOLDER 1 at the destination and use that as the destination of the move.
Re: Moving structured Files + leaving original folder struct

Posted:
Fri Jan 31, 2014 7:53 pm
by rellimbor
Got it—thanks!