Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
78 mp3s - renaming help? Any scripts other than for FM Pro?
#21
Thanks Marc, that was it. Maybe it's just these files but the script doesn't do much. After it discovers the existing playlists and presents a dialog with the available choices, it gets the file's name but doesn't continue with a way to do more?

Seems to not be doing this nest?
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

In Script Editor's event log, after I choose the playlist, here is the last thing it notes:

	count every track of playlist 
78 MP3s
1
get name of item 1 of every track of playlist
78 MP3s
MYBUCKETSGOTAHOLEINIT_HankWilliams_MGM_10560-A
end tell
Reply
#22
I think I spotted the error. Rev 2:

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, X's artist, X's 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
#23
Marc Anthony wrote:
[quote=Joey Cupcakes]
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.
I agree, I said I just don't know how.
Reply
#24
Thanks again Marc, that worked. This will help many of the files. Doesn't make them perfect but that's not due to a limitation of your script. Each filename has the song title in uppercase and running together. Where the artist name appears THAT's in mixed case but still running together. And record label is all uppercase. Example: MYBUCKETSGOTAHOLEINIT_HankWilliams_MGM_10560-A.MP3

Not all files are in that format, some are in a roughly genre/record label format. Maybe he didn't know the title and artist info: GREEK_-_COLUMBIA_7168-F-CO24641.mp3

Joey, give Marc's script a try, at least as a starting point.
Reply
#25
Here's what I'm finally doing. It's tedious.

I'm going through every file, putting in spaces and underscoring where missing. Then dragging each folder into TriTag, which handles most. For the few ones that won't take, I'm using media scrubber tool in Media Rage.

It seems the most direct route for someone like me that's not so "script-able". 8-)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)