Applescript: Get TV Titles
UPDATE: TV.com (which I use to find the show titles) has since changed their format, so I cannot guarantee that this script works as advertised. I will confirm it in the near future.
UPDATE 2: This Applescript has been replaced by a more efficient and lightweight Bash script.
After picking up a 750 GB hard drive for my Airport Extreme, I’ve started to rip my DVDs so that I can watch them on my computer. The problem is that the files don’t come out with descriptive episode titles, leaving you guessing when you want to pick a show to watch. If you decide to add the titles yourself, the process can be tedious and time consuming, not to mention downright annoying.
That is why I’ve created a combination Automator/Applescript workflow to do the job automatically. After entering the name of the TV show you’re looking for, the program takes the selected files and searches TV.com’s vast episode guide for the correct titles. Once the data has been collected, the titles are added to the selected files. The only preparation you must do is rename the files in the format SxxExx where S is the season number, and E is the episode number (S02E05, for example). This step is very easy when you use a program like NameMangler, which can add sequential filenames in one pass.
|Get TV Titles Application||Download and run as standard application|
|Get TV Titles Workflow||Automator workflow that can be saved as an application or Finder plugin|
|Get TV Titles Finder Plugin||Can be run from the Finder contextual menu (right-click). To install, download and save to the folder Userfolder/Workflows/Applications/Finder.|
- Collect files and rename them in the SxxExx format. Using NameMangler seems to work best, but there are other applications out there to do the same thing.
- Select all the files you wish to add titles to.
- Start the program in whichever way you’ve downloaded: directly from Automator, the standalone application, or by the contextual right-click menu and navigating to More > Automator > Get TV Titles.
- Type in the name of the TV show you’re looking for episodes from.
- If you’re running it via the contextual menu, you’ll see this status message in the Finder menubar.
- Once the computer has processed the data, you’ll see all the episodes neatly named.
So far I’ve been able to edit more than 20 files at once. Of course, your mileage may vary, so please comment with feedback and results.