remove duplicate dots at the end of a filename

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

Moderator: Mr_Noodle

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
Ni€ls
 
Posts: 20
Joined: Thu May 16, 2019 10:50 am

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.
Mr_Noodle
Site Admin
 
Posts: 11195
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support