Page 1 of 1

Move a file and duplicate it

PostPosted: Sun Oct 18, 2020 11:35 pm
by matthewp
What is the best way to take a file, rename it and move it to a folder, then duplicate the file in the same folder.

For example:

File A is moved and renamed File B
File B is duplicated (copied and renamed) to be File C in the same folder as File B

I've tried a few things which haven't worked as expected. I could add the destination as a new hazel folder with another rule but I'd rather do it with one rule for the sake of simplicity. Whats the best way to do this?

Re: Move a file and duplicate it

PostPosted: Mon Oct 19, 2020 10:32 am
by Mr_Noodle
The Copy action does not allow copying to the same folder. Do you really need another copy of the same file there? Would an alias work instead?

Re: Move a file and duplicate it

PostPosted: Mon Oct 19, 2020 8:27 pm
by matthewp
Mr_Noodle wrote:The Copy action does not allow copying to the same folder. Do you really need another copy of the same file there? Would an alias work instead?


Its duplicating my manual process that I have done for years. I take a file that I receive and make two versions of it (a PPT with some slides deleted for a different purpose). Maybe there is a shell script that can duplicate like right clicking on the file in finder (what I currently do). Will think about it or perhaps move the second copy to another folder altogether. Thanks!

Re: Move a file and duplicate it

PostPosted: Tue Oct 20, 2020 10:10 am
by Mr_Noodle
You can have Hazel copy it to another folder then move it back. A bit roundabout though.