JSO Batch rename illegal characters in Pro Tools.
by Jeremy Olsen
I've been trading files with other picture and sound people for a few decades now. And while it does seem computers have become more tolerant of illegal characters, I'm still very suspicious—and continue to be warned by I.T. specialists—that you should really only ever have letters, numbers, and underscores in your naming. Spaces and hyphens if you're feeling frisky. But certainly not & or " or ?%#~! A little script that will get rid of all those nasty special characters you may inherited in that Pro Tools session. Just one command, done in less than 30 seconds. While this script is not perfect, it will go through and batch-rename most of these in a way that is generally logical for how they are typically used. Sometimes it just removes the character entirely, sometimes replaces it with an underscore. And there are a few special cases where it made sense to be a little more tricky than that. Things it can't do, that I know of at the moment: • It can't rename periods. As much as they shouldn't be in the middle of a filename, I'm wary of possibly removing file extensions and messing things up. • It can't account for creating duplicate filenames. If removing/replacing any of these special characters causes the new clip/file name to be the same as an existing one, I imagine the script will fail. Let me know if you find it useful, or if you discover any other particularly good or problematic things about it.