Page 1 of 1

Copy twice, move once. Cant figure it out.

PostPosted: Tue Jul 20, 2021 4:02 am
by BavarianOne
Hi,

a invoice is dropped in a specific folder. When Kind = PDF, I want the following to happen.

a) remove all Tags. Works.
b) add a new Tag. Works-
c) COPY the file to Folder1 (in the Library of this user). Works alone, but not together with d) and/or e)
d) COPY the file to Folder2 (DMS on the Synology NAS). Works alone, but not with c) and/or e)
e) MOVE the file to a subfolder. Dienst work under any condition. It is copied, but not moved.

Image

Re: Copy twice, move once. Cant figure it out.

PostPosted: Tue Jul 20, 2021 9:32 am
by Mr_Noodle
Are these all in the same rule or separate ones? If the former, be aware that whenever you do a copy, subsequent actions act on the copy, not the original.

Re: Copy twice, move once. Cant figure it out.

PostPosted: Tue Jul 20, 2021 10:19 am
by BavarianOne
Ah, the Screenshot is broken.
It is the same rule.



Image

Re: Copy twice, move once. Cant figure it out.

PostPosted: Tue Jul 20, 2021 11:39 am
by BavarianOne
It works!

Thank you for your help!

I changed the order to

a)add tag
b) move
c) copy 1
d) copy 2

and this works! no clue, why.

Re: Copy twice, move once. Cant figure it out.

PostPosted: Sun Aug 08, 2021 9:24 pm
by chaseholden
Mr_Noodle wrote:Are these all in the same rule or separate ones? If the former, be aware that whenever you do a copy, subsequent actions act on the copy, not the original.


I have a similar problem and question, Mr. Noodle. You say "subsequent actions act on copy, not original," but is there any way to prevent this and rather force a subsequent action on the original file?

After all, the Hazel User Interface is quite misleading because the second "Do Action" part of the rule specifically states (CAPS mine): "Do the following to the MATCHED FILE or folder:"

This is deceptive because it becomes a falsehood the moment a copy or move action is performed.

The reason this is important to me is that I need to be able to:
    1. Add Tag to File on fast source drive #1
    2. Copy to slow drive #2
    3. Copy to slow drive #3
    4. Delete Original from fast drive #1
and the reason the order is important and I do not want to do a "MOVE" instead is that only the Source directory drive is fast, and the two destination drives are very slow.

That is, were I instead to Move the file to the first slow drive, then the subsequent Copy from Slow drive to Slow Drive would be much slower, and this adds up with large numbers of files.

Re: Copy twice, move once. Cant figure it out.

PostPosted: Mon Aug 09, 2021 9:39 am
by Mr_Noodle
How about using two rules instead? If you use a "Continue" action on the first of the rules, the second rule can also be evaluated and run.

Re: Copy twice, move once. Cant figure it out.

PostPosted: Tue Aug 10, 2021 3:41 am
by chaseholden
Mr_Noodle wrote:How about using two rules instead? If you use a "Continue" action on the first of the rules, the second rule can also be evaluated and run.


That will work!
Thanks again for all of your hard work. Hazel is brilliant.

P.S.: As a feature request, I'd love to see option to choose whether an action applies to the source file or the copied file.