INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: How to avoid slash (/) in auto file folder naming?  (Read 4047 times)

sandalaudio

  • Recent member
  • *
  • Posts: 41
How to avoid slash (/) in auto file folder naming?
« on: July 21, 2014, 04:01:31 am »

When I try to automatically rename music files or sort albums into folders based on the ID3 tag,
if the ID3 tag contains a colon symbol ( : ), MC automatically converts it to a slash (/).

e.g.
An album tag that says "Beethoven: Symphony No.5"
will create a folder "Beethoven/ Symphony No.5"

Use of colon or slash is fine for ID3 tags, but it's not good for files and folders.
Is there any way to change what substitution letter MC will use for auto naming?
For example, iTunes uses underscore (_) as a substitute for colon when renaming files and folders, which is much more preferable.
Logged

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: How to avoid slash (/) in auto file folder naming?
« Reply #1 on: July 21, 2014, 10:03:24 am »

This is because colons are an alternate path delimiter on OSX (from the old classic MacOS days).  So, they're being converted to folder names.

You're right, though, in this case that makes no sense.  It should strip them from tags before pushing them to disk.
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

sandalaudio

  • Recent member
  • *
  • Posts: 41
Re: How to avoid slash (/) in auto file folder naming?
« Reply #2 on: July 21, 2014, 07:02:55 pm »

Thanks for the reply.
I thought the MC's conversion of colon ( : ) to slash (/) was some kind of a convenience feature that tried to eliminate the colon.
I didn't realise that it was actually a legacy delimiter symbol, which is being interpreted by MC as a modern delimiter slash.

It would be great if MC adds a function to automatically replace ID3 tag colon or slash to an underscore when it is being referenced to name a file or a folder.
Having slash in the file and folder name really stuffs up things and other auto rename apps like Apple Automator crashes.
Logged

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: How to avoid slash (/) in auto file folder naming?
« Reply #3 on: July 21, 2014, 11:25:49 pm »

Thanks for the reply.
I thought the MC's conversion of colon ( : ) to slash (/) was some kind of a convenience feature that tried to eliminate the colon.
I didn't realise that it was actually a legacy delimiter symbol, which is being interpreted by MC as a modern delimiter slash.

I'm not absolutely positive, but I strongly suspect that MC is just sending the colon to the OSX system file management APIs, and it is being converted there:
http://stackoverflow.com/questions/13298434/colon-appears-as-forward-slash-when-creating-file-name

Actually, if you read that thread, it looks like it IS preserving the colon, but that's an illegal character on HFS+, and the Finder displays it as a slash.  Or something.

Even iTunes used the colon as the path delimiter as recently as iTunes 10.1.  Its a traditional MacOS thing from before OSX.  Now that Carbon is dead, I bet most of the applications out there have phased it out, but there is probably still some auto-correcting logic in the APIs somewhere.

JRiver probably needs to strip them out manually and replace with the "_" pre-emptively before passing them over.  Colons aren't legal in filenames on Windows either, so that shouldn't be too tough.

Now, I could be wrong and this could be a bug from a misplaced effort to auto-convert from MacOS Classic-style path names (perhaps older iTunes databases or something), but then it is just a bug.
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: How to avoid slash (/) in auto file folder naming?
« Reply #4 on: July 21, 2014, 11:50:26 pm »

Yeah.  I just tested it.

It is actually the Finder being weird.  The files really DO have the colon in their filenames.  The finder just doesn't show it that way.  Watch:
https://vimeo.com/101372674

This is certainly related to the way they converted from the classic MacOS system to the Unix system, with the vagaries of bringing HFS+ over and everything.

MC needs to strip them out like it does on Windows.
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

sandalaudio

  • Recent member
  • *
  • Posts: 41
Re: How to avoid slash (/) in auto file folder naming?
« Reply #5 on: July 22, 2014, 02:05:01 am »

Thanks for testing it out.

I will request JRiver for a feature to correct this, since it causes all sorts of strange issues after these files are created. I just had the Finder keep crashing and relaunching on me every time I tried to throw this file into trash.

What's interesting and ironic is that JRiver replaces any Double Quotation ( " ) symbols in the ID3 tags into underscore when doing the auto file name thing.
e.g.
An album ID3 tag called Beethoven: Symphony No.6 "Pastoral"
becomes
Beethoven/ Symphony No.6 _Pastoral_
Logged

adamt

  • Galactic Citizen
  • ****
  • Posts: 447
Re: How to avoid slash (/) in auto file folder naming?
« Reply #6 on: July 22, 2014, 10:41:57 am »

The next build will convert colons to underscores when saving.  Thanks for the report!
Logged
Adam Thompson, JRiver

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: How to avoid slash (/) in auto file folder naming?
« Reply #7 on: July 22, 2014, 01:47:37 pm »

* glynor gives Adam a high-five.
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

adamt

  • Galactic Citizen
  • ****
  • Posts: 447
Re: How to avoid slash (/) in auto file folder naming?
« Reply #8 on: July 22, 2014, 02:37:19 pm »

Logged
Adam Thompson, JRiver

sandalaudio

  • Recent member
  • *
  • Posts: 41
Re: How to avoid slash (/) in auto file folder naming?
« Reply #9 on: July 22, 2014, 09:26:48 pm »

The next build will convert colons to underscores when saving.  Thanks for the report!

Wow. That's fantastic! Thanks for responding so quickly!
Logged
Pages: [1]   Go Up