Batch rename specific song titles in iTunes

Hi,
I'm thinking about writing a program that will go through my iTunes library to (1) find all songs with a specific characteristic and then (2) append a prefix to those song titles.
For instance, I have a bunch of tracks with general title:
     artist_album_version_track_123456
and I would like to append a single string to each track title, so I get something like:
     MyString_artist_album_version_track_123456.
In other words, one track title may be something like : Coldplay_Yellow_Parachutes_349203. So, there are three strings (with underscores), followed by a six digit integer.
I would like to append something to the beginning of all the tracks that end in a six digit integer. So, in the last example, the program would take that title and change it to something like:
     Zweit234_Coldplay_Yellow_Parachutes_349203
In particular, I only want to append one string to the beginning of the track title, so the string DOES NOT change with the track title. In the above case, all track titles would have Zweit234_ appended to them.
The reason I need to automate this task is because I have about 80,000+ tracks to rename.
Ideally, I can create an executable script that the user runs and the entire process is completed, without any additional user interaction.
I'm looking into ways to interact with iTunes data using AppleScript and Java, but I was hoping someone might have some ideas or, at least, be able to point me in the right direction.
Any help would really be appreciated.
Thanks!

Hi red_menace,
Your last post really helped and I was hoping you could help with another question I have. I used your script to output the data to a text file and then wrote something in java to sort the items I wanted. So now I have a text file with all the tracks that I would like to change that looks like:
Track1
Track2
Track3
Track4
Track5
etc...
Now, I wrote an AppleScript that will append something to the prefix of my song name, but I'm not sure how to run through the names that I have in the text file. I've tried changing the text file into a list and then saying something like:
set listOfTracks to {}
set Tracks to paragraphs of (read POSIX file "filepath")
repeat with nextLine in Tracks
          if length of nextLine is greater than 0 then
                    copy nextLine to end of listOfTracks
          end if
end repeat
tell application "iTunes"
          set sel to listOfTracks
-- Rest of Code --
end tell
My script actually doesn't pop up any errors, but it also doesn't work. I've tried looking into finding the location of each of the tracks and then making a playlist with those tracks, and then just changing everything in the playlist, but that hasn't really gone that well either.
So, my question is: How can I create a playlist in AppleScript using the tracks listed in a text file?
My attempts so far have really fallen flat.
I would really appreciate your help!

Similar Messages

  • I rename a song title, click it & doesnt save the title PLEASE HELP!!!

    So I rename a song title since it is not labeled correctly, and then it changed the title, and moves to the alphabetically correct spot, but then if i double click it after it is changed, it automatically changes the song title back to the original one, and then moves the file automatically to the old spot that it was before i changed the title. Does that make sense? Please help! I am finding it very hard when i rename a song, and it doesnt work!
    I am working with about 5000 mp3s and its a headache...
    thanks!

    View my earlier thread on id3 tag changes not sticking. I think I found the solution:
    ...These files would not allow the tag version to be changed from v2.4. However, if you ctrl-click->convert id3 tags and select id3 tags version as "none", it will default to v1.1. From there the tag info can be edited and the changes will stick. If you need to you can re-convert the tag version (eg.v2.3) and the edits will still be maintained.
    PowerBook G4 1.67GHz   Mac OS X (10.4.7)   iTunes 6.0.5

  • I updated song titles in itunes but the changes dont show up on my ipod

    I updated song titles in itunes but the changes dont show up on my ipod. It still shows the old song titles. Help!!

    Did you try unsyncing the songs and then resyncing them?

  • Renaming the song title by right click -- Get Info. But no longer able to do so.

    I used to rename the songs in my iTunes from my PC while it was connecting to my iPhone by right click and Get Info. But I am no longer able to do that. When I right click, the Get Info part seems to be disabled for editing? Why is it so?

    Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.
    Start Firefox in Safe Mode to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    <b> To Enable SafeMode </b>
    *You can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    *''Once you get the pop-up, just select "'Start in Safe Mode"''
    If it works in Safe Mode and in normal mode with all extensions (Tools > Add-ons > Extensions) disabled then try to find which extension is causing it by enabling one extension at a time until the problem reappears.
    Close and restart Firefox after each change via "Firefox > Exit" (Windows: Firefox/File > Exit; Mac: "Firefox > Quit Firefox"; Linux: "Firefox/File > Quit")
    * https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Itunes rename smy song titles

    When I play some of my songs in my itunes it renames then to the track number in front of the song title i.e. Champagne Supernova becomes 12 Champagne Supernova. Any ideas?

    Yet when i alter the song titles in their folder by editing the id tag
    Are you editing the filenames in the folder or editing the ID3 tags?
    iTunes doesn't care what the file name is. It will use the ID3 tags.
    When you edit the info in iTunes, it will change the ID3 tags. If the songs are in the iTunes music folder, iTunes will change the to match the song title ID3 tags.

  • No song title in iTunes 6 Radio

    Hello, anyone! I recently installed iTunes v6.0 and now when playing iTunes radio (any station), the artist and song title don't appear in the toolbar display. What's up? Everything was fine with v5.0 (or whatever I had before). Is this a thinly disguised way to make me pay for my music? Or am I unaware of options I can toggle? THANKS.

    hi y'all!
    hmmm. have you checked/posted/searched at "Podcasting and Radio in iTunes for Windows" yet?
    http://discussions.apple.com/forum.jspa?forumID=796
    (just a thought. i haven't been able to keep up with radio issues lately, and apparently our radio gurus aren't spending a lot of time in this forum, judging by the lack of replies to the original post.)
    love, b

  • I Renamed some songs on my ITunes, they are changed on Itunes but not on my IPhone 3GS

    Please Help me ... i added an album to my IPhone and renamed the Songs/Album and they changed on ITunes but not on my phone what is wrong ? im on the latest Version of ITunes and the new OS 5

    Thanks for the response. That was helpful. However, I still want to know why did the songs I purchased yesterday appear on my IPod for downloading but the those I purchased today did not? After you rassistance I went to settings and turned on automatic downloading for my ipod. So if it wasn't enabled yesterday, how was I able to see the purchases I made yesterday on my computer on the ipod and then download them to the ipod? That is what I expected to see today but all I was seeing were the songs I purchased yesterday and not the ones I did today.

  • Batch renaming of songs

    I've written QuicKeys based macros to rename large groups of songs, artists, composers, etc. using the iTunes 6.x GUI, but am wondering if anyone knows of a program that would do this more simply and elegantly? Perhaps along the lines of "A Better Finder Rename" for files? Any suggestions would be appreciated! Thank you.

    seems i can recall utilities to rename files in finder under the AppleScripts for Finder some time ago. Have a look thru them, you may find what u seek.
    Beavis2084

  • TS2972 I can see the song titles in itunes shared library on my new imac  but songs will not play. I have a pc with wifi network that the main music library is on. tried saving songs from pc to an external drive then to new mac but thats not working eithe

    attempted to transfer itunes music from pc to new imac. didn't work. apple suggest using sharing method. main library of music is on pc. did those steps and shared library shows up on mac but when you click on the song to play it doesn't play or maybe ther is no content? any suggestions?

    Hi there,
    It sounds like your purchased content is not transfering via a flash drive. It may be easier to re-download this contnet directly from iTunes. Take a look at the article below for mor information.
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    http://support.apple.com/kb/ht2519
    -Griff W.

  • Why do i get only song titles on iTunes homepage but no images? When i click on the titles, why don't they link me to the songs?, Why do i get only song titles on my homepage but no images? When i click on the titles, why don't they link me to the songs?

    This has mysteriously happened before and mysteriously stopped.

    Are you still facing the same issue ? This majorly relates to network problem or probably some issue on server end , have you tried to contact your host ?
    Thanks,
    Sanjit

  • ITunes changes my song titles why???

    When I enter my song titles many times I will add some descriptive word to the title for my own information - only maximum 6 letters . I also include the artists name with the song title..
    iTune changes the title sometimes it just enters the song title and other times it will enter the song title with the artist name within the song title and other times it just shortens the entry.
    Does anyone know if there is a setting that I can change so that iTunes enters the song title as I have entered it. I have looked and cannot find anything.
    My song library is almost 5100 songs and I use 2 ipods with my songs on them.
    Thanks for any help.

    Hi. Can you tell me where you are editing your song titles. Is it in iTunes once you've added them to your library or are you renaming the file name then adding into iTunes? Thanks,

  • What does an (!) next to a song title mean in itunes?

    What does an next to a song title in itunes mean?

    It means that the song cannot be located on you Hard Drive. To fix it:
    1) Double-Click the song
    2) Click Locate from the window that pops up.
    3) Locate the song on your Hard Drive

  • Is there a way to edit song titles on an iPad?

    I don't use the Music part of "iTunes in the cloud" for one simple reason: Some times the iTunes Store gets the song titles wrong - poor punctuation, misspelled words, that type of thing. If I had the 'automatically download music' turned on, I assume my iPad would receive the songs directly from the iTunes Store, with any such incorrect punctuation. So if I turned that option on, would there be any way to edit the song titles directly from my iPad?
    For example: I buy an album from the iTunes Store on my computer. It has song titles that have misspellings. Those misspellings would also end up on my iPad once the songs were pushed to it. So would there be any way to fix them? If so, how?
    Would I have to edit the song titles in iTunes and then sync it with the iPad? That would defeat the purpose of music in the cloud, wouldn't it?

    Babaganoosh wrote:
    Would I have to edit the song titles in iTunes and then sync it with the iPad?
    Yes.

  • How to edit song titles

    How to edit song titles in lumia phones (lumia 720). How to create playlist on the phone itself (without using pc or laptop.)

    Babaganoosh wrote:
    Would I have to edit the song titles in iTunes and then sync it with the iPad?
    Yes.

  • Need help coping song titles to clipboard

    I wanted to search for some info online about a song I have in Itunes. I like to just copy and paste to google the song title from itunes, but not all songs will let me copy. Some will, by doing a slow double click or going into info and coping the title. These are songs I ripped from CD's I purched and I am only wanting the text copy...not the mp3. Is there an option that lets you copy or change the names of songs in Itunes?

    Like I said above....when I do a slow double click, some songs will highlght in a box and let me cut or copy. Not all songs will highlight with a box when clicking twice to give me the copy option. I can also click once on some songs and go to info and make changes there, but the same songs that will not highlight with the box, will not let me change under info.
    Message was edited by: Mark Pilkinton

Maybe you are looking for

  • Non-functioning Clone Tool

    Running Photoshop CS3 on Windows XP Professional 160GB; 77GB Free All of a sudden after more than a year functioning fine my clone stamp tool stopped working. Everything else is working fine. I reinstalled CS3 and the tool worked fine then, after a r

  • Integration between contentselector rule in ebcc and Vignette - Third party cms..???

    OK, this should be really basic, but I can't find the answer anywhere. We wish to use the bea personalization server <pz:contentselector> tag so as to display personalized data to the users.The content should be retrieved from the third party content

  • Latin 1 supplement for Pattern matching

    Hi All, I am trying to pattern match a string with the following pattern: "\\p{InLatin1Supplement}+"(want to allow only characters in Latin 1 Supplement charset) However I get java.util.regex.PatternSyntaxException: Unknown character family {Latin1Su

  • Color of dust jacket in photo book

    can i change color of dust jacket in photo book using aperture. its default is white but i would like it black. thanks pauline ottawa

  • SAP B67876125 problem with Nokia E90

    Mercedes Benz SAP B67876125 Nokia E90 07.40.1.2 I recently replaced Nokia E60 with Nokia E90. Pairing and phone calls work fine. I have a problem downloading phone memory phonebook to the SAP B67876125 from Nokia E90. I can only see the SIM phonebook