2 actions on a file (copy then move)

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

Moderator: Mr_Noodle

2 actions on a file (copy then move) Sat Aug 11, 2018 2:50 am • by NoodleNewbie
Hi

I do not understand why this seemingly simple rule is not working. My logic must be flawed or I am assuming something I dont realise I am.

Condition met
copy file to folder A
move file to folder B

Essentially,
From a folder
first take a copy of the file (and store it in my backup directory) (action is copy)
then move the original file to my working directory (action is move)

When I run the rule, Hazel is moving the copied file.

How do I instruct hazel to do both these actions on the 1 file.
NoodleNewbie
 
Posts: 34
Joined: Fri Jul 13, 2018 5:17 pm

Re: 2 actions on a file (copy then move) Sat Aug 11, 2018 9:07 pm • by TheWart
Jumping in before MrNoodle…the reason it seems to be misbehaving is that the actions are performing in logical sequence:

Condition met
copy (matched) file to folder A
move (copied) file to folder B

I produced what I think you want by switching the actions:

Condition met
move (matched) file to folder A
copy (moved) file (from folder A) to folder B

Does that accomplish what you want?
TheWart
 
Posts: 5
Joined: Sat Mar 12, 2016 11:14 am

Re: 2 actions on a file (copy then move) Mon Aug 13, 2018 10:36 am • by Mr_Noodle
Thanks TheWart. Yes, when doing a copy, subsequent actions work on the copy. Doing a move, then copy instead should do what you want.
Mr_Noodle
Site Admin
 
Posts: 11195
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: 2 actions on a file (copy then move) Mon Aug 20, 2018 8:48 pm • by NoodleNewbie
Thankyou theWart + MrNoodle. All fixed with your help.
NoodleNewbie
 
Posts: 34
Joined: Fri Jul 13, 2018 5:17 pm


Return to Support