INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Cleaning up Tag's  (Read 1502 times)

666JackTheKnife666

  • World Citizen
  • ***
  • Posts: 150
Cleaning up Tag's
« on: December 30, 2011, 12:04:12 am »


most of my tag's for the name field are [track#] - [song name] - [album name]

example : 001 - bozo - bozo the clown Great hits

ok what I would like to do is remove the track number and the album and have my name field with just the song name.

I am kinda at a loss on how to do this in an automated fashion.
thx for any and all help.
Logged

Vincent Kars

  • Citizen of the Universe
  • *****
  • Posts: 1154
Re: Cleaning up Tag's
« Reply #1 on: December 30, 2011, 05:11:55 am »

Try an expression like
ListItem([name],1,-)
Logged

666JackTheKnife666

  • World Citizen
  • ***
  • Posts: 150
Re: Cleaning up Tag's
« Reply #2 on: December 30, 2011, 05:21:52 am »

Try an expression like
ListItem([name],1,-)

thx for the reply, so where do I use that with, the rename,move,copy tool  or somthing elce ?
Logged

Vincent Kars

  • Citizen of the Universe
  • *****
  • Posts: 1154
Re: Cleaning up Tag's
« Reply #3 on: December 30, 2011, 05:28:34 am »

First test by using an Expression Column: http://thewelltemperedcomputer.com/SW/Players/MC14/MC_Expression_columns.htm

Select the lines you want to be changed and use the Excel style expression in the Name column
http://thewelltemperedcomputer.com/SW/Players/MC14/MC_Expression_excel.htm

Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Cleaning up Tag's
« Reply #4 on: December 30, 2011, 10:34:06 am »

If your tags are populated, then you can use those to drive the rename.

Select the tracks, Rename, Move & Copy Files..., deselect the Directory section, and select the Filename section.  Enter the template: [Name] as the Rule (Rule > Insert Field > Name).  The preview will show what will be the results.
Logged
The opinions I express represent my own folly.

rick.ca

  • Citizen of the Universe
  • *****
  • Posts: 3729
Re: Cleaning up Tag's
« Reply #5 on: December 30, 2011, 04:26:20 pm »

Quote
If your tags are populated, then you can use those to drive the rename.

The question seems to be how to rename [Name], not how to use it to rename files. Using Regex() would be the more elegant solution, but ListItem() will work fine. Using ' - ' rather than '-' would avoid legitimate hyphens from being interpreted as delimiters. That, of course, assumes the delimiter always includes spaces. Problems with inconsistent values can be found easily by using an expression column to test the function before using it to change the values in [Name]—as suggested by Vincent. If in doubt, use three expression columns—one for each of [Track #], [Name] and [Album]—to ensure those values are being separated as expected.
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Cleaning up Tag's
« Reply #6 on: December 30, 2011, 05:06:36 pm »

Sorry, I should have been more clear.  I meant ONCE the tags are correctly set, THEN use Rename (as the OP was asking how do accomplish the rename).

You can use this expression as a Filename rule inside the Rename dialog:

  if(Regex([filename (name)], /#^(\d+) - (.*) - (.*)(\.[^.]+)$#/),   [R3],    Filename(,0))

This will show you the previews of what will be renamed.  File names that don't match the pattern are left alone.

If you find examples that don't work, we may be able to modify the Regex() to work with these, or you can reduce the selected files and work with those that do.
Logged
The opinions I express represent my own folly.
Pages: [1]   Go Up