Page 1 of 1

replace an existing file as part of a rule?

PostPosted: 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!

Re: replace an existing file as part of a rule?

PostPosted: Thu Mar 21, 2013 11:56 am
by Mr_Noodle
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.