Jump to content
Ralf11

Remove leading digits from Song Titles?

Recommended Posts

Is there any way to easily automate this process?

 

I have a number of song titles with a one or two digit number and then a space in front of the actual song name.  I'd like to strip these off.

 

e.g. "2 Ramble on Rose"

 

and "12 Estimated Prophet"

 

also, some of the titles have '02' instead of '2'

 

Yes, these are Dead Show downloads...

Share this post


Link to post
Share on other sites

In that case, if you are using the latest macOS (Mojave) - or maybe even the prior one, I can't recall for sure - you can now bulk-rename files in the Finder. So you can select all the files in a folder, then right-click (or Control-click, same thing) and the contextual menu will come up. Select "Rename X Items..." and then a little window will come in where you can select all kinds of options: add text, remove N characters, and so on.

 

If you are using iTunes and the issue is that song titles in iTunes have unwanted numbers in them, then in that case there are free AppleScripts out there that can batch-change the tags on music in your iTunes library.

 

But from you description it sounds like the Finder-based solution is what you're looking for.

Share this post


Link to post
Share on other sites

ok, I cannot see any wildcard for the digits - is there one?

 

e.g. in many text editors (and in MS Word) you can use a wildcard character which will 'stand for' any digit

Share this post


Link to post
Share on other sites
7 minutes ago, Ralf11 said:

ok, I cannot see any wildcard for the digits - is there one?

 

e.g. in many text editors (and in MS Word) you can use a wildcard character which will 'stand for' any digit

 

You can use this script but you'll have to replace each individual number+space by nothing:

 

https://dougscripts.com/itunes/scripts/ss.php?sp=searchreplacetagtext

Share this post


Link to post
Share on other sites

Well, I am really old school about this, as I would use a terminal and a few edit commands. ;). 

 

Something like this might work for you, but would be complex if you are not a RegEx guy... 

https://forums.macrumors.com/threads/apple-script-to-rename-file-according-to-delimiters-and-regular-expressions.1915371/#post-21859645.  

 

AppleScript is probably the easiest way though. 

 

-Paul

 

Share this post


Link to post
Share on other sites

The Increment Number Tags script from Doug's Scripts for iTunes is also helpful in processing these set lists - it is Donation Ware, so pay something to keep him writing these.

Share this post


Link to post
Share on other sites

Yes, and thanks.  That would be an alternative to the namechanger pgm, except that here n varies as the numbers in front of the song title can be 1 or 2 digits long

Share this post


Link to post
Share on other sites

BTW, I'm done with everything in the database (for now) but have noticed that iTunes takes > 2 days to update the song names (!!)

Share this post


Link to post
Share on other sites
On 3/13/2019 at 7:52 PM, Ralf11 said:

ok, I cannot see any wildcard for the digits - is there one?

 

e.g. in many text editors (and in MS Word) you can use a wildcard character which will 'stand for' any digit

 

Unless I'm misunderstanding what you'r trying to do, you don't need wildcards,. You can use the Finder's bulk-rename functionality to remove a certain number of characters from the beginning or end of the files' names.

Share this post


Link to post
Share on other sites

I've done did whut I wanted to do, but N.B. the certain number is uncertain, and variable - I encountered either 1 or 2 digits; others could find more perhaps

Share this post


Link to post
Share on other sites

What you would want to do is sort the tracks in alphabetical order; all the ones with digits will be at the top of the list. Remove one character from the tracks with digits, then resort. Then remove one character from the remaining tracks with digits. 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...