INTERACT FORUM

Please login or register.

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

Author Topic: Remove Numbers from name  (Read 5219 times)

nathanchavez

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 292
  • I know nothing except for the fact of my ignorance
Remove Numbers from name
« on: July 27, 2021, 12:47:33 pm »

I need a little help here.  I have a lot of audio tracks where the track number is repeated in the tracks name (the name field, not the file name).  The first image below is the an example of what I want to fix, to make it look more like the second image.  Is there a way I can remove numbers from the name field using the find and replace command?  I'm not sure what to use for the number variable there.
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2565
Re: Remove Numbers from name
« Reply #1 on: July 27, 2021, 12:56:25 pm »

You can select all the tracks you want to fix, open the Tag editor panel and enter this in the Name tag:
Code: [Select]
=trim(regex([Name],/#^(\d+\.)?(.*)#/,2))
This fixes all names starting by a number followed by a dot.
Make a library backup before you do this!
Logged

nathanchavez

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 292
  • I know nothing except for the fact of my ignorance
Re: Remove Numbers from name
« Reply #2 on: July 27, 2021, 01:32:18 pm »

You can select all the tracks you want to fix, open the Tag editor panel and enter this in the Name tag:
Code: [Select]
=trim(regex([Name],/#^(\d+\.)(.*)#/,2))
This fixes all names starting by a number followed by a dot.
Make a library backup before you do this!

Wow!!!  This works perfectly.  Thank you!
Logged

nathanchavez

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 292
  • I know nothing except for the fact of my ignorance
Re: Remove Numbers from name
« Reply #3 on: July 31, 2021, 05:29:40 pm »

Is there a way to quickly see which tracks meet that criteria?
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2565
Re: Remove Numbers from name
« Reply #4 on: August 02, 2021, 05:43:23 am »

You can type this on the Search box to filter all matching files:

Code: [Select]
[=regex([Name],/#^\d+\.#/,0)]=1
Logged

kr4

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 740
Re: Remove Numbers from name
« Reply #5 on: August 02, 2021, 09:45:48 am »

You can select all the tracks you want to fix, open the Tag editor panel and enter this in the Name tag:
Code: [Select]
=trim(regex([Name],/#^(\d+\.)?(.*)#/,2))
This fixes all names starting by a number followed by a dot.
Make a library backup before you do this!
Is there something similar for those that do not have the dot?
Logged
Kal Rubinson
"Music in the Round"
Senior Contributing Editor, Stereophile

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2565
Re: Remove Numbers from name
« Reply #6 on: August 02, 2021, 10:15:16 am »

This works for tracks starting with numbers followed by spaces, dots, dashes, or no separator at all.
Code: [Select]
=trim(regex([Name],/#^(\d+[.\s\-]*)?(.*)#/,2))
1 Hotel California
1. Hotel California
1 - Hotel California
1Hotel California
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42323
  • Shoes gone again!
Re: Remove Numbers from name
« Reply #7 on: August 02, 2021, 10:35:11 am »

You could look at the Number(...) expression as well.  It was built to handle jobs like this.
Logged
Matt Ashland, JRiver Media Center

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2565
Re: Remove Numbers from name
« Reply #8 on: August 02, 2021, 10:47:05 am »

But Number() returns just the number, even if it's in the middle of a string. Here we want to return everything except the number at the beginning of a string.
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42323
  • Shoes gone again!
Re: Remove Numbers from name
« Reply #9 on: August 02, 2021, 10:53:24 am »

Do we need a new function?  Sure could add if people think.  NoNumber(...)
Logged
Matt Ashland, JRiver Media Center

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2565
Re: Remove Numbers from name
« Reply #10 on: August 02, 2021, 11:56:30 am »

It's more like a new mode for Clean(), to remove track numbers from the start of the [Name], as in the Hotel California examples above. It's not to remove numbers from the middle of a string, just the beginning.
Logged

lepa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2033
Re: Remove Numbers from name
« Reply #11 on: August 02, 2021, 01:16:19 pm »

Nena - Keine Luftballons  ;D

If filename is correct one can also use F12 Fill Properties from filename
12 Hotel California
[] [Name]

12.Hotel California
[].[Name]

etc.
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42323
  • Shoes gone again!
Re: Remove Numbers from name
« Reply #12 on: August 02, 2021, 03:26:18 pm »

It's more like a new mode for Clean(), to remove track numbers from the start of the [Name], as in the Hotel California examples above. It's not to remove numbers from the middle of a string, just the beginning.

I'll add this tomorrow.  I love expression goodies :)
Logged
Matt Ashland, JRiver Media Center

nathanchavez

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 292
  • I know nothing except for the fact of my ignorance
Re: Remove Numbers from name
« Reply #13 on: August 02, 2021, 03:38:58 pm »

I'll add this tomorrow.  I love expression goodies :)

Really?  That would be super helpful!  I've had thousands of tracks that needed to be renamed, and it would be nice to have an e asier way to do that.

Thank you, zybex, you have been really helpful!
Logged

kr4

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 740
Re: Remove Numbers from name
« Reply #14 on: August 02, 2021, 04:10:22 pm »

I'll add this tomorrow.  I love expression goodies :)

Thanks.  I get lots of stuff direct from studios and they tend to include track numbers in filenames (and other tags it they have them).
Logged
Kal Rubinson
"Music in the Round"
Senior Contributing Editor, Stereophile

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42323
  • Shoes gone again!
Re: Remove Numbers from name
« Reply #15 on: August 03, 2021, 08:29:58 am »

Next build:
NEW: Added mode 6 to the clean function which removes leading numbers (including spaces, decimals, and commas).
Logged
Matt Ashland, JRiver Media Center

nathanchavez

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 292
  • I know nothing except for the fact of my ignorance
Re: Remove Numbers from name
« Reply #16 on: August 03, 2021, 01:18:06 pm »

Next build:
NEW: Added mode 6 to the clean function which removes leading numbers (including spaces, decimals, and commas).

That's awesome, thank you!  I know this will be very useful.
Logged

nathanchavez

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 292
  • I know nothing except for the fact of my ignorance
Re: Remove Numbers from name
« Reply #17 on: August 04, 2021, 12:32:40 pm »

Next build:
NEW: Added mode 6 to the clean function which removes leading numbers (including spaces, decimals, and commas).

Where is the build.  I can't find it.
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42323
  • Shoes gone again!
Re: Remove Numbers from name
« Reply #18 on: August 04, 2021, 01:54:38 pm »

Where is the build.  I can't find it.

Beta only.  We'll hopefully promote a build in a day or two.
Logged
Matt Ashland, JRiver Media Center

nathanchavez

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 292
  • I know nothing except for the fact of my ignorance
Re: Remove Numbers from name
« Reply #19 on: August 04, 2021, 03:09:00 pm »

Beta only.  We'll hopefully promote a build in a day or two.

Dang.  Ok.  Thanks!
Logged

nathanchavez

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 292
  • I know nothing except for the fact of my ignorance
Re: Remove Numbers from name
« Reply #20 on: October 04, 2021, 01:40:13 pm »

Is there a way I can make a smart list from this, with notes on how to trim (see post #2)so I don't have to keep looking up this thread every time ?
Logged

macdonjh

  • Citizen of the Universe
  • *****
  • Posts: 538
Re: Remove Numbers from name
« Reply #21 on: October 06, 2021, 07:46:24 am »

It's more like a new mode for Clean(), to remove track numbers from the start of the [Name], as in the Hotel California examples above. It's not to remove numbers from the middle of a string, just the beginning.

Thanks to @zybex and @Matt.  I don't keep track numbers in my [Name] or filenames, either.  This new feature will be helpful: I've been deleting track numbers manually...
Logged

Richard Martin

  • World Citizen
  • ***
  • Posts: 235
Re: Remove Numbers from name
« Reply #22 on: October 06, 2021, 04:11:07 pm »

Is there a way I can make a smart list from this, with notes on how to trim (see post #2)so I don't have to keep looking up this thread every time ?
You can create the smart list by selecting "custom" in the drop down where you usually select the field in the rule and then pasting in the search expression.
Logged

nathanchavez

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 292
  • I know nothing except for the fact of my ignorance
Re: Remove Numbers from name
« Reply #23 on: October 07, 2021, 12:50:57 am »

I can add the smartlist that will show me which files need to be renamed by adding "[=regex([Name],/#^\d+\.#/,0)]=1" as a custom  element.  But then the issue becomes, where do I put the command that needs to be run on the now displayed results, in this case "=trim(regex([Name],/#^(\d+\.)(.*)#/,2))"?

Edit-

Holy hell!  I just found out that I can edit the upper panel of the smartlist listings, and that it can act as a makeshift notes panel.  How long has this been here?  Neveer mind, don't tell me.  I'll feel stupid(er).
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2565
Re: Remove Numbers from name
« Reply #24 on: October 07, 2021, 03:17:00 am »

You can just open the smartlist, select all files (CTRL+A), and then enter the expression in the [Name] field of the Tag Editor (replacing the "[Varies]" value).
You can then reopen the smartlist - it should be empty as all names are now fixed.

Note that I modified the Regex on my post above, your version is not ideal.

Also, you can just use Matt's new Clean() mode:
- Smartlist: [=isEqual(Clean([Name],6),[name])]=0
- Cleanup: =Clean([Name],6)
Logged

nathanchavez

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 292
  • I know nothing except for the fact of my ignorance
Re: Remove Numbers from name
« Reply #25 on: October 07, 2021, 05:16:22 pm »

Quote from: zybex

Also, you can just use Matt's new Clean() mode:
- Smartlist: [=isEqual(Clean([Name],6),[name])]=0
- Cleanup: =Clean([Name],6)

How do I access this clean mode feature?
Logged

macdonjh

  • Citizen of the Universe
  • *****
  • Posts: 538
Re: Remove Numbers from name
« Reply #26 on: October 11, 2021, 03:02:59 pm »

As long as we're asking:

I have a few albums with the individual tracks named: [Artist] - [Track]. [Name]

Note, all that is a text string, not an expression.  I'd like to get rid of everything but [Name].  How can I "scrub" the [Artist], "-", [Track] and ".", plus the spaces?
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72367
  • Where did I put my teeth?
Re: Remove Numbers from name
« Reply #27 on: October 11, 2021, 05:59:42 pm »

https://wiki.jriver.com/index.php/Expression_Language

About 1/3 of the way down, read "Field Assignment".
Logged

terrym@tassie

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 503
Re: Remove Numbers from name
« Reply #28 on: October 11, 2021, 08:36:23 pm »

Quote
How can I "scrub" the [Artist], "-", [Track] and ".", plus the spaces?

This should work for your example:

Take a library backup first, then create a Smartlist to find all the files you are interested in:
Right click Smartlists in tree, Add Smartlist>Name 'Find Artist - Track prefix' then click Import/Export and paste the following into the Smartlist rules data window
Code: [Select]
[Media Type]=[Audio] [=Regex([name],^/([artist]\s-\s\d+\.\s/),0)]=1
Ok out and review the files in the Smartlist , if OK then select all and paste the following into the Name tag in the Tag window:
Code: [Select]
=Regex([name],^/([artist]\s-\s\d+\.\s/),-1)Replace([Name],[R1],)
EDIT: This is a neater version of the above code, does the same. (Note to self: Review then Post, not Post then Review)
Code: [Select]
=Replace([Name],Regex([name],^/([artist]\s-\s\d+\.\s/),1),)
That should give you 'cleaned' names IF they all conform to the example you quoted: [Artist] - [Track]. [Name].

Logged
Good manners cost nothing.
Bad manners can cost you your reputation
― B.D.Hawkey

macdonjh

  • Citizen of the Universe
  • *****
  • Posts: 538
Re: Remove Numbers from name
« Reply #29 on: October 11, 2021, 09:40:44 pm »

Thanks, I'll try it.

"Review then post, not post then review".  :), :), :)
Logged

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8014
Re: Remove Numbers from name
« Reply #30 on: October 12, 2021, 11:36:52 am »

Nice job with the Regexes guys!

Brian.
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2565
Re: Remove Numbers from name
« Reply #31 on: October 12, 2021, 03:30:04 pm »

How do I access this clean mode feature?

Clean() mode 6 is available on MC 28.0.47 and above.
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2565
Re: Remove Numbers from name
« Reply #32 on: October 12, 2021, 03:48:37 pm »

As long as we're asking:

I have a few albums with the individual tracks named: [Artist] - [Track]. [Name]

Note, all that is a text string, not an expression.  I'd like to get rid of everything but [Name].  How can I "scrub" the [Artist], "-", [Track] and ".", plus the spaces?

If you want a more generic regex that doesn't depend on the [artist], you can try this filter on the search box:
Code: [Select]
-[=regex([name],/#.+?\d\.\s*(.+)#/,1)]=""
Then you can do the cleaning by selecting all filtered tracks and pasting this on the [Name] field:
Code: [Select]
=regex([name],/#.+?\d\.\s*(.+)#/,1)
Logged

terrym@tassie

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 503
Re: Remove Numbers from name
« Reply #33 on: October 12, 2021, 05:57:06 pm »

I did consider a more generic regex for the [Artist] - [Track]. Name issue but found that it generated a lot of 'false positives' mainly on the classical section of my library where it is not uncommon to find something like the following name tag 'Sibelius: Violin Concerto in D minor, op.47 - 1. Allegro moderato' where the number is a movement number rather than a track number.

Nice compact MC regex expression though! Always something to learn from others in the wonderful world of regex.
Logged
Good manners cost nothing.
Bad manners can cost you your reputation
― B.D.Hawkey

kr4

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 740
Re: Remove Numbers from name
« Reply #34 on: October 12, 2021, 06:20:48 pm »

How do I access this clean mode feature?

Yes, please.  Some of us have followed this thread with interest but, frankly, do not know how to implement the feature. 

Can someone give use a procedure or a link to one?

Perhaps it can be added to the "Clean File Properties" dropdown menu.
Logged
Kal Rubinson
"Music in the Round"
Senior Contributing Editor, Stereophile

terrym@tassie

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 503
Re: Remove Numbers from name
« Reply #35 on: October 12, 2021, 06:38:30 pm »

Quote
Can someone give use a procedure or a link to one?

Zybex has shown how to use this in a previous post, but here it is again:

Select a Name tag field in the Tag window for example a Name containing '1 - Brown Sugar'

Paste the following into the name field: =Clean([Name],6) the result will be 'Brown Sugar'

Hope this explains it.


(still reviewing after posting , darn)

To further explain see my post above about creating a Smartlist to find files that need cleaning but in this case paste the following into the 'Smartlist rules data':
Code: [Select]
[Media Type]=[Audio] [=isEqual(Clean([Name],6),[name])]=0
then as above 'Select All' files (ctrl+A) and then in the Tag window Name field paste:
Code: [Select]
=Clean([Name],6)this will then clean all the selected files Name tag.

You could of course be blunt about it, take a Library backup, select all the files in your Library and then apply =Clean([Name],6) to the Name field to clean each and every one of the Name tags in your library.
Logged
Good manners cost nothing.
Bad manners can cost you your reputation
― B.D.Hawkey

nathanchavez

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 292
  • I know nothing except for the fact of my ignorance
Re: Remove Numbers from name
« Reply #36 on: October 12, 2021, 07:16:32 pm »

I mean, not really.  Just this can be done manually, which works perfectly using the methods described in the first four posts, but there's be no mention of how to access clean features which were implemented in MC 28.0.47 and above.  I've asked.  Yes, I know it's there.  Duh.  But how are they accessed?  That still has not been answered.  I'm running MC 28.0.73 and can see no resemblance to that feature other than clean file properties, which does not allow for custom fields.
Logged

terrym@tassie

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 503
Re: Remove Numbers from name
« Reply #37 on: October 12, 2021, 08:02:09 pm »

They are accessed via the MC expression language, the Clean function is part of that of that language.
When a statement entered into a field is prefixed by '=' it tells MC to invoke the expression rather than literally interpret the string.

So if I were to enter in the Name field where I have '1- Brown Sugar' the statement 'Clean([Name], 6)' the result in the Name field  would be 'Clean([Name]), 6)'
IF however I enter '=Clean([Name], 6)' the result is 'Brown Sugar' so why is this?

It is because MC has invoked the expression (because I told it to with '=') and taken the value of the [Name] field '1- Brown Sugar', done Matt's magic on it and returned the answer 'Brown Sugar'.

The Clean function has been part of the MC expression language for some time, Matt has simply added a new mode to this function. This mode is invoked by specifying 6 in the function. Description of Clean function:   Clean(string, mode)

The expression language wiki explains this (but doesn't show Mode 6 because it was only introduced recently) see https://wiki.jriver.com/index.php/String_Manipulation_Functions#Clean

Does this explain how you access it?

Logged
Good manners cost nothing.
Bad manners can cost you your reputation
― B.D.Hawkey

nathanchavez

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 292
  • I know nothing except for the fact of my ignorance
Re: Remove Numbers from name
« Reply #38 on: October 12, 2021, 08:08:57 pm »

They are accessed via the MC expression language, the Clean function is part of that of that language.
When a statement entered into a field is prefixed by '=' it tells MC to invoke the expression rather than literally interpret the string.

So if I were to enter in the Name field where I have '1- Brown Sugar' the statement 'Clean([Name], 6)' the result in the Name field  would be 'Clean([Name]), 6)
IF however I enter '=Clean([Name], 6)' the result is 'Brown Sugar' so why is this?

It is because MC has invoked the expression (because I told it to with '=') and taken the value of the [Name] field '1- Brown Sugar', done Matt's magic on it and returned the answer 'Brown Sugar'.

The Clean function has been part of the MC expression language for some time, Matt has simply added a new mode to this function. This mode is invoked by specifying 6 in the function. Description of Clean function:   Clean(string, mode)

The expression language wiki explains this (but doesn't show Mode 6 because it was only introduced recently) see https://wiki.jriver.com/index.php/String_Manipulation_Functions#Clean

Does this explain how you access it?

Oh, okay.  I guess I has assumed from Matt's post that there was some sort of gui-driven menu-based option.  But based on what you're saying  there's not, and it's not really anything more than using the Name field.  That works for, I just thought there was a gui-drive way to do it similar to "Clean File Properties".
Logged

terrym@tassie

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 503
Re: Remove Numbers from name
« Reply #39 on: October 12, 2021, 08:35:36 pm »

Oh I see, you were thinking it might have been added to the 'Clean file properties' dialog like I have shown in the attached screenshot (the option in italics DOES NOT EXIST!).

Looks like a 'Feature request' try posting in a separate thread maybe the dev's will take up the idea.
Logged
Good manners cost nothing.
Bad manners can cost you your reputation
― B.D.Hawkey

terrym@tassie

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 503
Re: Remove Numbers from name
« Reply #40 on: October 13, 2021, 01:19:57 am »

I got to thinking about this a bit more and wondered if folks were aware that they could fix this issue at Import time by configuring Auto-Import to 'clean' the Name field as it was imported into the library.
So if the 'Smartlist>Select files>Paste function into Name procedure' is performed on the current files in the library and then Auto-import is configured as follows then one would never need to 'clean' the Names again.
To configure Auto-Import:
Tools>Options>Library & Folders>Configure auto-import>Edit watched folder>Apply these tags (optional)>Add>Field=Name Value=Clean([Name], 6).
See also attached screenshot.
Logged
Good manners cost nothing.
Bad manners can cost you your reputation
― B.D.Hawkey

nathanchavez

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 292
  • I know nothing except for the fact of my ignorance
Re: Remove Numbers from name
« Reply #41 on: October 13, 2021, 10:45:36 am »

terrym@tassie, oh that works perfectly!  Thanks for the idea!
Logged

terrym@tassie

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 503
Re: Remove Numbers from name
« Reply #42 on: October 13, 2021, 09:29:48 pm »

Pleased it worked for you! Should work for kr4's issue with the 'direct from studio files' (#v.jealous) as well.

I use the auto-import quite extensively for 'sorting out' the metadata on downloads I purchase, putting all the expression code there means I don't have to keep looking up expressions and pasting them into library fields (although I do maintain a text file called 'Useful MC expressions').
You can use quite selective 'If else' type statements to do different 'fixups' for particular publishing labels ( I test on the copyright field).
Metadata varies but is usually consistent from a particular label (at least for classical music).
 
I use just one 'Import Folder' on the high speed SSD as this helps with 'Audio analysis' performance, once the import has completed I use the 'Rename/Copy' tool to move the files to their proper 'home' in my library. I would love an 'After import is complete, rename files to this rule' feature to be added to MC as this would complete the automation for my use case.
 
I prefer to let MC do all the work so I can get on with enjoying playback of my library.
Logged
Good manners cost nothing.
Bad manners can cost you your reputation
― B.D.Hawkey

kr4

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 740
Re: Remove Numbers from name
« Reply #43 on: October 14, 2021, 02:33:36 pm »

Pleased it worked for you! Should work for kr4's issue with the 'direct from studio files' (#v.jealous) as well.
It does, thank you very much.

OTOH, having it added to the added to the 'Clean file properties' dialog would be ideal!!
Logged
Kal Rubinson
"Music in the Round"
Senior Contributing Editor, Stereophile

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42323
  • Shoes gone again!
Re: Remove Numbers from name
« Reply #44 on: October 14, 2021, 03:14:52 pm »

OTOH, having it added to the added to the 'Clean file properties' dialog would be ideal!!

So you're looking for adding a checkbox like:
"Remove leading numbers (including spaces, decimals, and commas)"

To the Clean File Properties tool?
Logged
Matt Ashland, JRiver Media Center

kr4

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 740
Re: Remove Numbers from name
« Reply #45 on: October 14, 2021, 05:53:29 pm »

So you're looking for adding a checkbox like:
"Remove leading numbers (including spaces, decimals, and commas)"

To the Clean File Properties tool?
Yes, please!
Logged
Kal Rubinson
"Music in the Round"
Senior Contributing Editor, Stereophile

pilotsanon

  • Junior Woodchuck
  • **
  • Posts: 59
Re: Remove Numbers from name
« Reply #46 on: December 16, 2021, 06:52:57 am »

Sorry, I actually have MC 27 not 28.  I did try adjusting and following the instructions you gave though and it didnt work.  It still imported the file with track number in name. 
Logged

jack wallstreet

  • Citizen of the Universe
  • *****
  • Posts: 515
Re: Remove Numbers from name
« Reply #47 on: December 16, 2021, 07:48:14 am »

This is wonderful capability.   For those who don't want to work with smartlists and expressions, a small program "Advanced Renamer" is what I use when I need to make mass changes to filenames.  Yes, that can confuse MC by changing a filename without telling MC (in which case you'll have a file not found), but it is relatively easy to avoid that problem.   My workflow is: load the files to be renamed in Advance Renamer, Mark the files in MC to be ready to delete (but don't delete), Run Advanced Renamer which renames the files.  As soon as AR is done, delete the old files from the MC database (before MC can figure out that the files are gone).  If you have MC set to auto import, the new files will magically appear.  All Done.   If the filename change affects the database properties, the run the MC command "fill properties from filename.  There are several steps, but if you don't want to deal with smartlist commands, it works well.
Logged
John

terrym@tassie

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 503
Re: Remove Numbers from name
« Reply #48 on: December 16, 2021, 04:21:26 pm »

Quote
My workflow is: load the files to be renamed in Advance Renamer, Mark the files in MC to be ready to delete (but don't delete), Run Advanced Renamer which renames the files.  As soon as AR is done, delete the old files from the MC database (before MC can figure out that the files are gone).  If you have MC set to auto import, the new files will magically appear.  All Done.   If the filename change affects the database properties, the run the MC command "fill properties from filename.

Well, each to his own, but this seems like a rather convoluted solution that can be (IMHO better) addressed using the renaming tools available in MC28.
Logged
Good manners cost nothing.
Bad manners can cost you your reputation
― B.D.Hawkey

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2565
Re: Remove Numbers from name
« Reply #49 on: December 16, 2021, 04:46:58 pm »

Logged
Pages: [1] 2   Go Up