Removing characters from 2500 filenames

Discussion in 'Mac Basics and Help' started by Blue Velvet, Oct 30, 2011.

  1. Blue Velvet Moderator emeritus

    Joined:
    Jul 4, 2004
    #1
    Accidentally converting 2500 large files (which took about six hours) to the same folder instead of another, I've ended up with them all having the same file names, but with a space and a 1 at the end of the file-name, like so:

    filename.tif
    filename 1.tif

    Now that I've moved all these converted files to another directory, any Terminal tricks or otherwise I can use to batch-remove the space and the 1 from 2500 filenames?

    Thanks in advance. :)
     
  2. r.j.s, Oct 30, 2011
    Last edited: Oct 30, 2011

    r.j.s Moderator emeritus

    r.j.s

    Joined:
    Mar 7, 2007
    Location:
    Texas
    #2
    Automator will do it ... I can work something up if you want.

    EDIT: Attached. Just pick the filename in "Make Sequential", right now it is set to filename, and then run it and choose the folder the files are in.
     

    Attached Files:

  3. Mal macrumors 603

    Mal

    Joined:
    Jan 6, 2002
    Location:
    Orlando
    #3
    I also use A Better Finder Rename for that purpose. It's not free, but I used the trial and found it worked really well, so I went ahead and bought it (and I don't buy a lot of software, mostly just use free or open-source stuff).

    jW
     
  4. gyorpb macrumors member

    Joined:
    Sep 15, 2011
    Location:
    Amsterdam
  5. GGJstudios macrumors Westmere

    GGJstudios

    Joined:
    May 16, 2008
  6. Jethryn Freyman macrumors 68020

    Jethryn Freyman

    Joined:
    Aug 9, 2007
    Location:
    Australia
    #6
    Another vote for A Better Finder Rename 8. It's brilliant, I love it. <3
     
  7. gyorpb macrumors member

    Joined:
    Sep 15, 2011
    Location:
    Amsterdam
    #7
    Apparently, it has been abandoned. Woe.

    .tsooJ
     
  8. BamaRoy macrumors newbie

    Joined:
    Nov 1, 2011
    #8
    Mass replace it

    I've used massreplaceit for a number of years. It's free and I've never had an issue with it. I even lets you Un-do the rename after the fact.

    You have to learn the quirks of how to get it to find what you want to replace. In your example, you would have it search for "e 1.tif" and replace it with "e.tif" or simply search for " 1" and replace it with "" (nothing)

    It has done in minutes what would take days to do manually.

    just do a search on massreplaceit
     

Share This Page