09-23-2008, 04:40 AM
I've written this, but I haven't had the time (or the MP3 source files) to test. You'll need to place the MP3 files in their own playlist, and I recommend creating a new playlist with only a few songs, as an initial test run.
--"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 ""
__________________________________________________________________________________
--"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 ""
__________________________________________________________________________________