Make filenames web safe

Case: I want to upload some files to a webserver, but I want all the files to be clean and web safe.

We need to use four methods to do the following:

  1. Make everything lowercase.
  2. Remove diacritics.
  3. Replace non-word character with - (dash).
  4. Replace any repeating dashes with a single dash.

Do the following:

  1. Add the files to the list.
  2. If there are methods in the method list click the Clear Methods toolbar button.
  3. Click Add Method and select New case Method.
  4. Set the "New case" dropdown to "Lowe case" and set "Location" to "All". Set "Apply to" to "Name and extension"
  5. Click Add Method again and select Remove Method.
  6. Set the "Remove type" dropdown to "Accents and special marks".
  7. Click Add Method once again and select Replace Method.
  8. Set "Replace" to [^a-zA-Z0-9_-].
  9. Set "Replace with" to -.
  10. Set "Occurrence" to "All".
  11. Set "Use regular expressions" to "Checked".
  12. Set "Apply To" to "Name".
  13. Click Add Method once again and select Replace Method again.
  14. Set "Replace" to -+.
  15. Set "Replace with" to -.
  16. Set "Occurrence" to "All".
  17. Set "Use regular expressions" to "Checked".
  18. Verify the names in the list.
  19. Click Start Batch.