Remove special characters from file name

Post Reply
LasseThid
Advanced member
Posts: 353
Joined: Tue Mar 03, 2015 2:30 pm
Location: Molndal, Sweden

Remove special characters from file name

Post by LasseThid »

Is there an easy way of getting rid of charachters other than a-z, A-Z, 0-9, - and _ from a filname?

I get a lot of files with names like Länsförsäkringar + 10 mm and I would like to get rid of the letters å, ä and ö, preferably replacing them with a and o respectively and any +, & or comma.
Enfocus Switch, Enfocus PitStop Server, Enfocus PDF Review, HP SmartStream& Kodak Prinergy with RBA
Offset 72x102, Offset Large Format, Digital Large Format and Digital print.
jan_suhr
Advanced member
Posts: 592
Joined: Fri Nov 04, 2011 1:12 pm
Location: Nyköping, Sweden

Re: Remove special characters from file name

Post by jan_suhr »

Hello Lasse,

In the Rename Job element there is an action called "Reduce character set". It will remove anything than a-zA-Z and replace with underscore, space or nothing.
Jan Suhr
Color Consult AB
Sweden
=============
Check out my apps
jan_suhr
Advanced member
Posts: 592
Joined: Fri Nov 04, 2011 1:12 pm
Location: Nyköping, Sweden

Re: Remove special characters from file name

Post by jan_suhr »

Or just use "Rename job" to search and replace å with a and so on
Jan Suhr
Color Consult AB
Sweden
=============
Check out my apps
LasseThid
Advanced member
Posts: 353
Joined: Tue Mar 03, 2015 2:30 pm
Location: Molndal, Sweden

Re: Remove special characters from file name

Post by LasseThid »

Thanks Jan!
Enfocus Switch, Enfocus PitStop Server, Enfocus PDF Review, HP SmartStream& Kodak Prinergy with RBA
Offset 72x102, Offset Large Format, Digital Large Format and Digital print.
User avatar
gabrielp
Advanced member
Posts: 645
Joined: Fri Aug 08, 2014 4:31 pm
Location: Boston
Contact:

Re: Remove special characters from file name

Post by gabrielp »

Free Switch scripts: open-automation @ GitHub
Free Switch apps: open-automation @ Enfocus appstore

Want to hire me? I'm looking for my next gig. Contact me on LinkedIn or via email.
jan_suhr
Advanced member
Posts: 592
Joined: Fri Nov 04, 2011 1:12 pm
Location: Nyköping, Sweden

Re: Remove special characters from file name

Post by jan_suhr »

gabrielp wrote: Wed Sep 19, 2018 3:09 pm If you like scripts https://github.com/open-automation/swit ... e-scrubber
Make an app of it :-)
Jan Suhr
Color Consult AB
Sweden
=============
Check out my apps
Post Reply