Clean Ripped TV Episodes for iTunes

This post was published more than a few years ago (on 2013-04-27) and may contain inaccurate technical information, outmoded thoughts, or cringe takes. Proceed at your own risk.

Download the Script

Different Apple devices (iTunes, Apple TV, iPad, iPhone, iPod) sort TV episodes using different metadata, causing confusion.

“Clean Ripped TV Episodes” for iTunes is an AppleScript to help you clean up the metadata of TV episodes you may have ripped from DVD, so that they will sort and preview properly on all Apple devices.


Copy the “Clean Ripped TV Episodes” file into your ~/Library/iTunes/Scripts/ folder (the tilde ~ stands in for the name of your home folder). If the Scripts folder does not yet exist inside the ~/Library/iTunes/ folder, create a new folder there called Scripts.

If that isn’t clear, check out this screen grab:

Finder window ~/Library/iTunes/Scripts/


“Clean Ripped TV Episodes” expects that each track will have the metadata for Show, Season Number and either Episode Number or Track Number filled out.

It will then copy the Show to Artist, Album Artist, and Show + Season Number to Album, like episodes purchased from the iTunes Store would have. It also copies either Episode Number or Track Number to whichever one of the two is empty.

  1. Select the tracks you wish to modify in iTunes. The script does not ask for confirmation, so choose your tracks wisely.
  2. Select the script from the iTunes script menu. This is the menu item between the “Window” and “Help” menus that looks like a scroll of paper: iTunes script menu (scroll icon)
  3. The script will run, cleaning episode metadata.
  4. When finished, the script will tell you how many tracks have been cleaned.

Release Notes


  • 21 August 2010
  • Initial Release

1 thought on “Clean Ripped TV Episodes for iTunes”

  1. Pingback: iTunes AppleScripts to Clean TV Episode Metadata | Station in the Metro

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.