Converting upper case file names to lower case.

Discussion in 'OS X' started by djsound, Nov 9, 2009.

  1. macrumors 6502a

    djsound

    Joined:
    Dec 4, 2006
    #1
    I have about 50 *.mp3's on my hard drive that have the file names in all upper case. When looking at them in itunes it drives me nuts....Is there a way to convert the uppercase file name to lowercase? I have googled but can't find anything. I do not want to do it manually, that would take a long time =( thanks, I'm crossing my fingers..
     
  2. macrumors 601

    Joined:
    Aug 15, 2005
    #2
    Go to Terminal:

    cd /path/to/files

    for FILE in `ls -A1 *.MP3`; do FILENAME=`echo ${FILE} | sed 's/ /\\ /g'`; echo mv ${FILENAME} `echo ${FILENAME} | tr [A-Z] [a-z]`; done

    That will output the commands to rename the files. If it looks correct, simply change "echo mv" to "mv".

    Note this is untested and off the top of my head.
     
  3. Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #3
  4. macrumors 601

    Joined:
    Aug 15, 2005
    #4
    Embrace the terminal, I say! ;)
     
  5. thread starter macrumors 6502a

    djsound

    Joined:
    Dec 4, 2006
    #5
    :mad: I got so happy because Name Mangler looks perfect.....until I realized it doesnt work with os/x 10.4.1 =( which I have.........and there is no way I'd attempt Terminal hehe.......grrrrrrrrrrr
     
  6. macrumors 601

    mscriv

    Joined:
    Aug 14, 2008
    Location:
    Dallas, Texas
    #6
    I use the Automater Rename Finder Items command all the time to make batch changes like this. There is a command you can use called Change Case that will do exactly what you are trying to do. Just to be safe you can set up Automater to make a backup copy of the files prior to making the change in case something goes wrong. If you would prefer you can just make your own back up copy of the files.
     
  7. thread starter macrumors 6502a

    djsound

    Joined:
    Dec 4, 2006
    #7
    very cool . I'll give that a go. thanks =)
     
  8. macrumors regular

    Joined:
    Feb 24, 2009
    Location:
    kansas city, mo
    #8
    http://www.manytricks.com/namemangler/ click in the box that says for older systems try file list.
     
  9. thread starter macrumors 6502a

    djsound

    Joined:
    Dec 4, 2006
    #9
    doh! thanks ;)
     
  10. thread starter macrumors 6502a

    djsound

    Joined:
    Dec 4, 2006
    #10
    That actually worked great but I realized that not only was the filename in uppercase but the ID3 tags were too.......so in itunes (which was bothering me) the song names and info are still in uppercase.....and I am guessing there is no possible way to change all of the ID3 tags to lowercase......I think im s**t out of luck =/
     
  11. Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #11
    You should take a look at Doug's AppleScripts for iTunes. There's one script for changing to sentence case, which is close to what you want. The scripts are somewhat old so no guarantee they work with the current iTunes, but worth a shot.
     
  12. macrumors 6502

    Joined:
    Oct 12, 2006
    #12
    Any way to get the artists to be all caps also, I used automator to change the tracks titles to all caps in the ID3 tag but nothing lets me change the artist also. I can change the filename with no issue but I really want to change the mp3 tag to be all caps. Thx guys for any info you have
     
  13. macrumors regular

    BerGaur

    Joined:
    Dec 12, 2011
    Location:
    Inside my head
    #13
    What if the filenames have spaces?
     

Share This Page