Ralf11 Posted March 13, 2019 Share Posted March 13, 2019 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... Link to comment
tmtomh Posted March 13, 2019 Share Posted March 13, 2019 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. Link to comment
Ralf11 Posted March 13, 2019 Author Share Posted March 13, 2019 Thx - I'll try that. Ironically, I just had to do some custom renaming of photos in Lightroom today... tmtomh 1 Link to comment
Ralf11 Posted March 13, 2019 Author Share Posted March 13, 2019 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 Link to comment
semente Posted March 14, 2019 Share Posted March 14, 2019 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 de Pascoaes HQPlayer Desktop / Mac mini → Intona 7054 → RME ADI-2 DAC FS (DSD256) Link to comment
The Computer Audiophile Posted March 14, 2019 Share Posted March 14, 2019 @Ralf11can now moderate this topic. 89reksal 1 Founder of Audiophile Style | My Audio Systems Link to comment
Paul R Posted March 14, 2019 Share Posted March 14, 2019 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 Link to comment
Ralf11 Posted March 14, 2019 Author Share Posted March 14, 2019 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. Link to comment
Ralf11 Posted March 14, 2019 Author Share Posted March 14, 2019 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. Link to comment
kirkmc Posted March 15, 2019 Share Posted March 15, 2019 Are these tracks in iTunes? If so, this AppleScript will do what you want: https://dougscripts.com/itunes/2012/09/updated-remove-n-characters-from-front-or-back-v4-6/ I write about Macs, music, and more at Kirkville. Author of Take Control of macOS Media Apps. Co-host of The Next Track podcast. Link to comment
Ralf11 Posted March 15, 2019 Author Share Posted March 15, 2019 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 Link to comment
Ralf11 Posted March 15, 2019 Author Share Posted March 15, 2019 BTW, I'm done with everything in the database (for now) but have noticed that iTunes takes > 2 days to update the song names (!!) Link to comment
tmtomh Posted March 15, 2019 Share Posted March 15, 2019 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. Link to comment
Ralf11 Posted March 15, 2019 Author Share Posted March 15, 2019 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 Link to comment
kirkmc Posted March 15, 2019 Share Posted March 15, 2019 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, music, and more at Kirkville. Author of Take Control of macOS Media Apps. Co-host of The Next Track podcast. Link to comment
Ralf11 Posted March 15, 2019 Author Share Posted March 15, 2019 Yup - tho the free NameChanger app is quicker and, using wildcards, does it all in one operation. Link to comment
TJtennispro Posted April 3, 2019 Share Posted April 3, 2019 What’s the verdict? I’ve got the same issue with some of my Dead shows. Link to comment
Ralf11 Posted April 3, 2019 Author Share Posted April 3, 2019 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 semente 1 Link to comment
TJtennispro Posted April 6, 2019 Share Posted April 6, 2019 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. Link to comment
Ralf11 Posted April 6, 2019 Author Share Posted April 6, 2019 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 Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now