remove name part of multile files

Discussion in 'OS X Mavericks (10.9)' started by Tech198, Jan 8, 2014.

  1. Tech198 macrumors G5

    Mar 21, 2011
    Australia, Perth
    Hi all...

    Is it possible with Automator to remove certain parts of a filename across multiple files. ?

    I have about 200+ files I'd like to remove all brackets, periods, and such and dates.

    no two dates are the same, however there is one piece of text with is unique to all associated files

    I'd like to remove find, and remove all of this info given in files from this name.

    Can this be done ? , or would i need to use third-party app ?

    eg file 1 [9-01-2014], YM
    file 2 [downloaded by] YM

    Hinting on "YM" as the unique text, however this this at the end of all files. Also wanting to replace "periods" as "spaces"
  2. jav6454 macrumors P6


    Nov 14, 2007
    1 Geostationary Tower Plaza
    Yes it is possible. You can even use Automator to organize files.
  3. w0lf, Jan 9, 2014
    Last edited: Jan 9, 2014

    w0lf macrumors 65816


    Feb 16, 2013
    Well I know for certain you can do this in bash. Not certain on what level automator handles wildcards.

    Edit: Just checked looks like * is supported so you should be good.

    Here's the automator batch rename workflow that I use:


    1. Drag items into "Get Specified Finder Items" window
    2. Edit the window below to find and replace whatever you want
    3. Run the workflow by pressing the Run button in the top right corner
  4. Tech198 thread starter macrumors G5

    Mar 21, 2011
    Australia, Perth
    ok, i just tried * it didn't work..

    I've actually done that one at a time, but i need to now do the same thing with removing numbers..

    01 . xxxx
    02. yyy
    03. xxx


    If i stick in in "Find" 01. " and under "Replace" i leave it blank, this removes '01. ' (including the space) from the beginning of the file name.

    But this only applies to one file at a time since its user entered.

    Is there a way to automatically do it to all numbered files.. ?

    Automator said it completed, but nothing happened when i went back to folder

Share This Page