Script to change a playlists media type to "TV Shows " in iTunes

I am in need of a simple script that will take a smart playlist I have in iTunes called “Shows” and change the media type from “Movies” to “TVShows”.

I used Automator to record my actions with limited success. I cannot figure out how to get Apple Script to select the playlist “Shows”. Every time I run it it ends up coverting everything in my library to the media type “TVShows”.

Any thoughts?

I’m in the process of writing a script that will take a csv file containing information gathered from wikipedia and fill in the appropriate spaces in the file info, including changing the media type. It’s not finished, but maybe something in what I have can help you out.

The key part in changing it is the “set video kind to TV show” line

It’s in this thread: http://macscripter.net/viewtopic.php?id=35401