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. Add New Case method and configure like this:
    • New case: Lower case
    • Location: All
    • Apply To: Name and extension
  4. Add Remove method and configure like this:
    • Remove type: Accents and special marks
    • Apply To: Name
  5. Add Replace method and configure like this:
    • Replace: [^a-zA-Z0-9_-]
    • Replace with: -
    • Occurrence: All
    • Use regular expressions: Checked
    • Apply To: Name
  6. Add Replace method again, but this time use this configuration:
    • Replace: -+
    • Replace with: -
    • Occurrence: All
    • Use regular expressions: Checked
    • Apply To: Name
  7. Verify the names in the list and click Start Batch.