Page 1 of 1

remove duplicate dots at the end of a filename

PostPosted: Mon May 20, 2019 5:56 pm
by Ni€ls
Hi guys, i want to remove duplicate dots at the end of a filename with the application Hazel.
The file extension are different: zip / mp3 / jpg

A sample:

Code: Select all
archive..zip


to change

Code: Select all
archive.zip



thx

Re: remove duplicate dots at the end of a filename

PostPosted: Tue May 21, 2019 10:30 am
by Mr_Noodle
Will there only be two dots or an arbitrary number of them? If only two dots, you can try matching filenames ending in a dot (the other dot plus the text after it is the extension). You can use a custom attribute to match the text up to the dot then use that attribute in a Rename action.