remove name part of multile files

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

  1. Tech198 macrumors G4

    Joined:
    Mar 21, 2011
    Location:
    Australia, Perth
    #1
    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

    jav6454

    Joined:
    Nov 14, 2007
    Location:
    1 Geostationary Tower Plaza
    #2
    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

    w0lf

    Joined:
    Feb 16, 2013
    Location:
    USA
    #3
    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:

    https://googledrive.com/host/0B-bdzenAXbO5SkFtZ3JwM2hnb1E/Batch Rename.zip

    Usage:

    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 G4

    Joined:
    Mar 21, 2011
    Location:
    Australia, Perth
    #4
    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

    etc..

    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