replace an existing file as part of a rule?

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

Moderator: Mr_Noodle

replace an existing file as part of a rule? Wed Mar 20, 2013 5:15 pm • by subpixel
I'm monitoring a folder for files with a certain extension and then adding another extension to the file.

For example: style.css gets changed to styles.css.liquid

The problem is, when styles.css gets re-saved to the directory (this happens all the time as part of my workflow), a new file named styles-2.css.liquid is created.

Is there a way I can get Hazel to replace/overwrite the existing file instead?

Thank you!
subpixel
 
Posts: 1
Joined: Wed Mar 20, 2013 5:06 pm

Unfortunately, the rename action does not have an option to replace an existing file. I think you might need to write a script to remove the old liquid file, then perform the rename.
Mr_Noodle
Site Admin
 
Posts: 11865
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support