Move a file and duplicate it

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

Moderator: Mr_Noodle

Move a file and duplicate it 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?
matthewp
 
Posts: 18
Joined: Sun Jan 24, 2016 5:51 am

Re: Move a file and duplicate it 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?
Mr_Noodle
Site Admin
 
Posts: 11868
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Move a file and duplicate it 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!
matthewp
 
Posts: 18
Joined: Sun Jan 24, 2016 5:51 am

Re: Move a file and duplicate it 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.
Mr_Noodle
Site Admin
 
Posts: 11868
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support