iTunes: possible to replace/upgrade a song file while keeping existing play count?

Discussion in 'Mac Apps and Mac App Store' started by jk73, May 6, 2015.

  1. jk73 macrumors 6502

    Joined:
    Jul 19, 2012
    #1
    Let's say I have two different versions of the same song, both of which have been matched by iTunes Match, and one of which is higher quality (i.e., better audio). I want to replace the lower-quality version with the higher-quality version, but I've listened to the lower-quality version 200 times and want to keep the play count. Is there a relatively easy way to do this without screwing up my iTunes library? Thanks.
     
  2. dZp macrumors 6502a

    dZp

    Joined:
    Mar 29, 2006
    #2
    Replace the lower-quality track with the higher-quality one.
    Set the play count of the higher-quality track by using the following AppleScript in Script Editor:
    Code:
    tell application "iTunes"
      activate
      set played count of track named "[I]higher-quality track[/I]" to 200
      return
    end tell
     
  3. jk73 thread starter macrumors 6502

    Joined:
    Jul 19, 2012
    #3
    Interesting. Thanks. Do I use the file name or the iTunes song name?
     
  4. dZp, May 8, 2015
    Last edited: May 8, 2015

    dZp macrumors 6502a

    dZp

    Joined:
    Mar 29, 2006
    #4
    The iTunes song name.

    Or select the track(s) and use the following AppleScript:
    Code:
    tell application "iTunes"
    	activate
    	set played count of selection to 200
    	return
    end tell
    The side effect of setting the play count like this is that you'll get a funky 'last played' date way back in time. So to avoid this and if you prefer a script with an interface for doing so, have a look at Doug's New Last Played Date v4.0

    http://dougscripts.com/itunes/scripts/ss.php?sp=newlastplayed
     
  5. mgroot macrumors regular

    mgroot

    Joined:
    Jul 25, 2014
    #5
    Before you do all this, make sure to have a good backup!!!

    • Make sure you have downloaded the lower quality version to your machine
    • Open 2 finder windows (or tabs) and put the bad quality folder in one and the good one in the other
    • Make sure the filename and metadata of the better quality ones are the same as the bad ones
    • Copy the good files over the bad ones and if you do an info on the song in iTunes you'll see the updated bitrate for the songs

    I've been using this method to put back the lossless rips I have into iTunes without losing all that info (I messed up with a timemachine backup where I had stupidly unchecked the music folder so I lost all the lossless files in the iTunes library from the TM backup, I had them stored on an external as well)
     
  6. jk73 thread starter macrumors 6502

    Joined:
    Jul 19, 2012
    #6
    Thanks for the info. Does this work if I have iTunes Match enabled? In other words, if I do the above, does iTunes Match re-match the song or does it recognize the higher-quality song as an already-matched song, with a different play count?
     
  7. mgroot macrumors regular

    mgroot

    Joined:
    Jul 25, 2014
    #7
    I've got no idea. I would think it'll update it if it's better than the one it has stored (any matched songs won't get updated since they're already on the match servers in the highest quality it stores). Just tell it to update match and see what happens.

    All the songs I replaced seem to now be matched
     
  8. jk73 thread starter macrumors 6502

    Joined:
    Jul 19, 2012
    #8
    Okay, thanks. It seems like your method sort of "tricks" iTunes; I'm wondering if iTunes Match is similarly tricked or if it recognizes that a file is different and updates the match accordingly. Thanks again.
     

Share This Page