Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
78 mp3s - renaming help? Any scripts other than for FM Pro?
#11
MacMagus wrote:
> Said it before, I'll say it again

You can keep whining, but I've already told you how.

Do it the easy way or do it your way.

Your choice.
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?
Reply
#12
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.
Reply
#13
You're quick, too. You caught my post before I edited it to be less flame-bait-ey. Wink

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

I thought you'd want the catalog number in the comment-field. Whatever. 'Glad you've got a satisfactory solution.
Reply
#14
THANKS!!!!!

:bubb:
Reply
#15
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.
The first mode also allows to create a unique directory structure (artist/album/) similar to the one generated by iTunes "Consolidate library".
Search the FreeDB database if neither the filename nor the tag contains correct information.
Reply
#16
Joey Cupcakes wrote:
If I knew how to do text calculations within Applescript I wouldn't need to rely on Filemaker, whose scripting capabilities are very powerful. I though I could do it in Excel, but I'm not as familiar with it's Applescript capabilities.

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.
Reply
#17
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.

set AppleScript's text item delimiters to
_

tell application
iTunes
set theTarget to (choose from list playlists's name as list with prompt ¬
Locate
&
\
&
78 MP3's
&
\
&
playlist.
as string
repeat with X in playlist theTarget's tracks
set theText to X's name
try
set X's {name, artist, comment} to ¬
theText's {text item 1, text item 2, text item 3}
end try
end repeat
end tell

set AppleScript's text item delimiters to

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.
Reply
#18
incognegro wrote:
Another suggestion -- will try when I get a minute:

TriTag (free)

Didn't work for me. Did nothing, actually.
Reply
#19
deckeda wrote:
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" )

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.

set AppleScript's text item delimiters to
_

tell application
iTunes
set theTarget to (choose from list playlists's name as list with prompt ¬
Locate
&
\
&
78 MP3's
&
\
&
playlist.
) as string
repeat with X in playlist theTarget's tracks
set theText to X's name
try
set X's {name, artist, comment} to ¬
theText's {text item 1, text item 2, text item 3}
end try
end repeat
end tell

set AppleScript's text item delimiters to
Reply
#20
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!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)