![]() |
78 mp3s - renaming help? Any scripts other than for FM Pro? - Printable Version +- MacResource (https://forums.macresource.com) +-- Forum: My Category (https://forums.macresource.com/forumdisplay.php?fid=1) +--- Forum: Tips and Deals (https://forums.macresource.com/forumdisplay.php?fid=3) +--- Thread: 78 mp3s - renaming help? Any scripts other than for FM Pro? (/showthread.php?tid=62659) |
Re: 78 mp3s - renaming help? Any scripts other than for FM Pro? - Joey Cupcakes - 09-23-2008 MacMagus wrote:Actually, you're too quick, Magus. Or maybe I am- I changed that post as soon as I sent it, knowing personally how much help you are around here. Downloaded MP3 rage and checked it out; of course you're right, I honestly didn't know it had that tool. The only issue I have with this tool is that it doesn't allow for placement of the third part of the string- the label & catalog info- into the comments field, as I'd like. (One could put that info in the album field though, which makes some kind of sense, and the writing an applescript to move data from one field to another is relatively simple.) The problem with that is, the Label and Catalog info are separated by the same underscore character, making the Regular Expression editor think they are 2 separate fields and the best I can get it to do (I do not claim to know regular expression syntax) is- with search= (.+)\s*_(.+)\s*_(.+)\s*_(.+) and replace =%t=1 %a=2 %l=3, YIDDISHSQUAREDANCE_MickeyKatzandhisKosher-Jammers_RCAVICTOR_25-5081-B.mp3 translates to: title: YIDDISHSQUAREDANCE artist: MickeyKatzandhisKosher-Jammers album: RCAVICTOR where as you see the catalog number gets dropped. I might find the proper formula with some experimentation, but perhaps you have an idea? Magus was right - Joey Cupcakes - 09-23-2008 Got it: in Media Rage: Convert Filenames To Data tool (Media Rage is slightly more flexible here than MP3 Rage) Search Expression = (.+)\s*_(.+)\s*_(.+)\s*_(.+) Replace Expression = %t=$1 %a=$2 %l=$3 $4 (note that the space between "$3" and "$4" is an option-space character). YIDDISHSQUAREDANCE_MickeyKatzandhisKosher-Jammers_RCAVICTOR_25-5081-B.mp3 becomes Title: YIDDISHSQUAREDANCE Artist: MickeyKatzandhisKosher-Jammers Album: RCAVICTOR 25-5081-B Test ran it on a folder, much faster than my Applescript/Filemaker combo. Re: 78 mp3s - renaming help? Any scripts other than for FM Pro? - MacMagus - 09-23-2008 You're quick, too. You caught my post before I edited it to be less flame-bait-ey. ![]() I have a license for MP3 Rage and not Media Rage, so that's what I used for the example. MP3 Rage doesn't have a convenient way to batch-copy comment tags from the name, but Media Rage does... sort of. The trick is to put the other info in the genre field when you convert names to tags (Media Rage calls it "Convert Filenames to Data") and then to swap the genre field with the comment field using the Data Mover tool. Use the same search, but substitute this for the Replace Expression: %t=$1 %a=$2 %g=$3_$4 Then in the data Mover, use the expression for genre (%g) and choose "Comment" as the destination. I think this leaves you with a duplicate of the data in both the Comment and Genre fields. If so, you can then use the Data Changer tool, check off Genre and give the entire collection any genre you'd like. ... Whoops! took too much time to type my response. ![]() I thought you'd want the catalog number in the comment-field. Whatever. 'Glad you've got a satisfactory solution. Re: 78 mp3s - renaming help? Any scripts other than for FM Pro? - john dough - 09-23-2008 THANKS!!!!! :bubb: Re: 78 mp3s - renaming help? Any scripts other than for FM Pro? - incognegro - 09-23-2008 Another suggestion -- will try when I get a minute: TriTag (free) http://www.feedface.com/software/tritag.html http://www.macupdate.com/info.php/id/15407/tritag TriTag helps you to get a clear MP3 collection by either creating a new filename out of the ID3Tag or filling the metatags using the information found in the filename using a user defined pattern - easy due to a pattern builder. Re: 78 mp3s - renaming help? Any scripts other than for FM Pro? - Marc Anthony - 09-23-2008 Joey Cupcakes wrote: You shouldn't create dependencies on other applications; it's not a good practice, and there is simply no need. iTunes is AppleScript aware and can handle your task, directly. Re: 78 mp3s - renaming help? Any scripts other than for FM Pro? - deckeda - 09-23-2008 Hi Marc. I pasted your script into Script Editor but it won't compile. "Expected “,” but found end of line." (this, after the word "string" ) --78 MP3 Nameizer--© 2008, Marc Anthony. All rights reserved. As an aside, the real shame of it is that the guy went through all this effort and didn't tag his files. Maybe it seemed like double the work to him. It would be cool if we could point him to a Windows solution so that he could fix what he's got at the outset. Re: 78 mp3s - renaming help? Any scripts other than for FM Pro? - deckeda - 09-23-2008 incognegro wrote: Didn't work for me. Did nothing, actually. Re: 78 mp3s - renaming help? Any scripts other than for FM Pro? - Marc Anthony - 09-23-2008 deckeda wrote: Yeah, the forum converted a piece of my code to a smilie. I'll try this again with an extra space. If it doesn't work, simply add an ending parenthesis ) between the end quote of playlist. and "as string". --78 MP3 Nameizer--© 2008, Marc Anthony. All rights reserved. Re: Magus was right - mspace - 09-23-2008 With the patient help of Joey Cupcakes, I found this thread. I got Media Rage and tried to use the scripts you have recommended, but was not completely successful. I tried TriTag and found it to be much more manageable. I think Media Rage will do a lot more, but this seems a simpler solution. Thanks!! |