Get iTunes "watched" info

Hi,

I use EyeTV to record TV shows and export them to iTunes to watch on my apple tv.

I am wanting to automate my disk management and create a script that lists all shows in the TV Shows folder and grabs whether the show has been watched from iTunes.

This will allow me to have it delete these watched videos

is it possible to get the watched/unwatched field from iTunes?

Dave

Try calling for the “played count” of a track (or, using repeat over the index of the items in a playlist, many tracks):

tell application "iTunes"
	activate
	set playcount to (get the played count of track 2 of playlist "Music")
	display dialog playcount
end tell