Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Tech198

Cancelled
Original poster
Mar 21, 2011
15,915
2,151
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"
 

w0lf

macrumors 65816
Feb 16, 2013
1,268
109
USA
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
 
Last edited:

Tech198

Cancelled
Original poster
Mar 21, 2011
15,915
2,151
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
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.