INTERACT FORUM

More => Old Versions => Media Center 14 (Development Ended) => Topic started by: twistees on December 22, 2009, 02:43:36 pm

Title: Question: Expression in library tools
Post by: twistees on December 22, 2009, 02:43:36 pm
I'm trying to replace spaces in my filenames (not directory names) with an underscore. The closest I got is using the "Library Tools > Rename, Move and Copy Files" and using the Filename Rule "Replace([Filename (name)], ,_)". Two questions:

1. I cannot seem to be able to replace a space with anything (maybe I am missing something, but I tried " ", ' ' and \  for the second parameter). What is the syntax to get MC to replace a space?
2. The extension part is replicated - getting .flac.flac. How can I avoid this?

Cheers,
Gordon
Title: Re: Question: Expression in library tools
Post by: JimH on December 22, 2009, 02:49:50 pm
Use another library tool, called "Find and Replace".  Try a few before you do very many.
Title: Re: Question: Expression in library tools
Post by: twistees on December 22, 2009, 03:05:04 pm
Use another library tool, called "Find and Replace".  Try a few before you do very many.

Using the "Find and Replace" was also replacing spaces in the folder names with an underscore. Am I missing something obvious? :-(

Title: Re: Question: Expression in library tools
Post by: JimH on December 22, 2009, 03:07:03 pm

2. The extension part is replicated - getting .flac.flac. How can I avoid this?
That may be an old build.  111 is at the top of this board.
Title: Re: Question: Expression in library tools
Post by: JimH on December 22, 2009, 03:11:13 pm
Using the "Find and Replace" was also replacing spaces in the folder names with an underscore. Am I missing something obvious? :-(
Try checking Filename (name) only.  See attached picture.

Title: Re: Question: Expression in library tools
Post by: twistees on December 22, 2009, 03:15:11 pm
Thanks. That was exactly what I needed - I was trying to use the "Find and Replace" under the "Rename ..." tool.

Gordon