Help with Automator

Discussion in 'macOS' started by Vixus, May 6, 2005.

  1. Vixus macrumors newbie

    Sep 8, 2004
    Hi, I really want to use automator for renaming mp3 files. However, I can't seem able to remove the track numbers from the filename. For example, in "01 - Artist Name - Song Name.mp3", I want to remove the number and just have it "Artist Name - Song Name.mp3". How can I tell automator to remove just the numbers. Do I have to do replace text for each number? Cause otherwise, I think automator is completely useless.

  2. ChrisBrightwell macrumors 68020


    Apr 5, 2004
    Huntsville, AL
    You can use a terminal command to do this, but I forget the syntax right off-hand.

    ls -R ./ | grep "*.mp3" | cut [something] | mv [something]

    You need an xargs in there somewhere, too. I'll try to figure it out tonight if I get some time. :)

    It would probably be easier to write a shell script or something. Automater may be able to do it, but I've not had enough time to really play with it.

    If you set iTunes' import options to *not* include track numbers, the self-organizing feature may do this for you. I haven't tried.

Share This Page