Copy and change name

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

Moderator: Mr_Noodle

Copy and change name Sun Sep 18, 2011 3:45 pm • by gordonprice67
I want to monitor one particular file, and when the label is changed to green, copy it with a different name to another folder, overwriting the file that is there.

However, the standard Hazel copy doesn't offer a rename option, so the only approach I am able to come up with is actually multiple rules. The idea being that one watches the original and makes a copy in the same folder. The next watches for that copy to happen and does the rename, and the last looks for the renamed version and moves it to the new folder. However, I can't even get a copy of the same folder to work, so I need to have rules for a whole new folder as well. All of which seems rather kludgy and suggests I am missing something obvious.

So, workflow should be something like this...
File.File in folder A has label set to green.
File.File is copied over File.Template in folder B.
File.File has it's label set back to nothing.

Any suggestions greatly appreciated!
Gordon
gordonprice67
 
Posts: 2
Joined: Sun Sep 18, 2011 3:35 pm

Re: Copy and change name Mon Sep 19, 2011 12:00 pm • by Mr_Noodle
Why can't you do it in one rule? Just have multiple actions. You may want to do the rename first then copy it over as the copy action has the option to overwrite and existing file.
Mr_Noodle
Site Admin
 
Posts: 11255
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support