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...


"The overwhelming majority [of audiophiles] have very little knowledge, if any, about the most basic principles and operating characteristics of audio equipment. They often base their purchasing decisions on hearsay, and the preaching of media sages. Unfortunately, because of commercial considerations, much information is rooted in increasing revenue, not in assisting the audiophile. It seems as if the only requirements for becoming an "authority" in the world of audio is a keyboard."

-- Bruce Rozenblit of Transcendent Sound

Share this post


Link to post
Share on other sites

Mac

 


"The overwhelming majority [of audiophiles] have very little knowledge, if any, about the most basic principles and operating characteristics of audio equipment. They often base their purchasing decisions on hearsay, and the preaching of media sages. Unfortunately, because of commercial considerations, much information is rooted in increasing revenue, not in assisting the audiophile. It seems as if the only requirements for becoming an "authority" in the world of audio is a keyboard."

-- Bruce Rozenblit of Transcendent Sound

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

Thx - I'll try that.  Ironically, I just had to do some custom renaming of photos in Lightroom today...


"The overwhelming majority [of audiophiles] have very little knowledge, if any, about the most basic principles and operating characteristics of audio equipment. They often base their purchasing decisions on hearsay, and the preaching of media sages. Unfortunately, because of commercial considerations, much information is rooted in increasing revenue, not in assisting the audiophile. It seems as if the only requirements for becoming an "authority" in the world of audio is a keyboard."

-- Bruce Rozenblit of Transcendent Sound

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


"The overwhelming majority [of audiophiles] have very little knowledge, if any, about the most basic principles and operating characteristics of audio equipment. They often base their purchasing decisions on hearsay, and the preaching of media sages. Unfortunately, because of commercial considerations, much information is rooted in increasing revenue, not in assisting the audiophile. It seems as if the only requirements for becoming an "authority" in the world of audio is a keyboard."

-- Bruce Rozenblit of Transcendent Sound

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


"Science draws the wave, poetry fills it with water" Teixeira Pascoaes

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

 


Anyone who considers protocol unimportant has never dealt with a cat DAC.

Robert A. Heinlein

Share this post


Link to post
Share on other sites

Thanks.  I found a Utility to do this.  NameChanger

https://www.macupdate.com/app/mac/21516/namechanger

 

The trick is that each 1 or 2 digit number is followed by a space, so it can simply look for the 1st space it finds and delete any character before that.


"The overwhelming majority [of audiophiles] have very little knowledge, if any, about the most basic principles and operating characteristics of audio equipment. They often base their purchasing decisions on hearsay, and the preaching of media sages. Unfortunately, because of commercial considerations, much information is rooted in increasing revenue, not in assisting the audiophile. It seems as if the only requirements for becoming an "authority" in the world of audio is a keyboard."

-- Bruce Rozenblit of Transcendent Sound

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.


"The overwhelming majority [of audiophiles] have very little knowledge, if any, about the most basic principles and operating characteristics of audio equipment. They often base their purchasing decisions on hearsay, and the preaching of media sages. Unfortunately, because of commercial considerations, much information is rooted in increasing revenue, not in assisting the audiophile. It seems as if the only requirements for becoming an "authority" in the world of audio is a keyboard."

-- Bruce Rozenblit of Transcendent Sound

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


"The overwhelming majority [of audiophiles] have very little knowledge, if any, about the most basic principles and operating characteristics of audio equipment. They often base their purchasing decisions on hearsay, and the preaching of media sages. Unfortunately, because of commercial considerations, much information is rooted in increasing revenue, not in assisting the audiophile. It seems as if the only requirements for becoming an "authority" in the world of audio is a keyboard."

-- Bruce Rozenblit of Transcendent Sound

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 (!!)


"The overwhelming majority [of audiophiles] have very little knowledge, if any, about the most basic principles and operating characteristics of audio equipment. They often base their purchasing decisions on hearsay, and the preaching of media sages. Unfortunately, because of commercial considerations, much information is rooted in increasing revenue, not in assisting the audiophile. It seems as if the only requirements for becoming an "authority" in the world of audio is a keyboard."

-- Bruce Rozenblit of Transcendent Sound

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


"The overwhelming majority [of audiophiles] have very little knowledge, if any, about the most basic principles and operating characteristics of audio equipment. They often base their purchasing decisions on hearsay, and the preaching of media sages. Unfortunately, because of commercial considerations, much information is rooted in increasing revenue, not in assisting the audiophile. It seems as if the only requirements for becoming an "authority" in the world of audio is a keyboard."

-- Bruce Rozenblit of Transcendent Sound

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. 


I write about Macs, iTunes, music, and more at Kirkville.

Author of Take Control of iTunes 12

Co-host of The Next Track podcast.

Share this post


Link to post
Share on other sites

Yup - tho the free NameChanger app is quicker and, using wildcards, does it all in one operation.


"The overwhelming majority [of audiophiles] have very little knowledge, if any, about the most basic principles and operating characteristics of audio equipment. They often base their purchasing decisions on hearsay, and the preaching of media sages. Unfortunately, because of commercial considerations, much information is rooted in increasing revenue, not in assisting the audiophile. It seems as if the only requirements for becoming an "authority" in the world of audio is a keyboard."

-- Bruce Rozenblit of Transcendent Sound

Share this post


Link to post
Share on other sites

not sure what you mean

 

for the mac, I used Namechanger - quick/easy/free

 

also the Finder can be used as per above 

 

for Windows, @One and a half posted a program and has another thread on it - and it will also work on a mac if you run wine


"The overwhelming majority [of audiophiles] have very little knowledge, if any, about the most basic principles and operating characteristics of audio equipment. They often base their purchasing decisions on hearsay, and the preaching of media sages. Unfortunately, because of commercial considerations, much information is rooted in increasing revenue, not in assisting the audiophile. It seems as if the only requirements for becoming an "authority" in the world of audio is a keyboard."

-- Bruce Rozenblit of Transcendent Sound

Share this post


Link to post
Share on other sites
On 4/3/2019 at 12:25 PM, Ralf11 said:

not sure what you mean

 

for the mac, I used Namechanger - quick/easy/free

 

also the Finder can be used as per above 

 

for Windows, @One and a half posted a program and has another thread on it - and it will also work on a mac if you run wine

 

I’ll try namechanger. When I said verdict I meant what’s the best way now that you’ve done the process. 

Share this post


Link to post
Share on other sites

namechanger was easiest for me on a mac

 

Finder would be easiest if you have no variance in string length

 

Like you mine were on Dead tunes, so there was variance


"The overwhelming majority [of audiophiles] have very little knowledge, if any, about the most basic principles and operating characteristics of audio equipment. They often base their purchasing decisions on hearsay, and the preaching of media sages. Unfortunately, because of commercial considerations, much information is rooted in increasing revenue, not in assisting the audiophile. It seems as if the only requirements for becoming an "authority" in the world of audio is a keyboard."

-- Bruce Rozenblit of Transcendent Sound

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...