Skip to content

Instantly share code, notes, and snippets.

@archgrove
Created April 21, 2013 18:00
Show Gist options
  • Save archgrove/5430451 to your computer and use it in GitHub Desktop.
Save archgrove/5430451 to your computer and use it in GitHub Desktop.
A small Applescript to reset the unplayed status of TV shows not watched in the last 3(ish) months. Makes the AppleTV display them with the shiny blue dot!
tell application "iTunes"
set d to (current date) - (12 * weeks)
repeat with t in (every track where played date is less than d and video kind is TV show)
set unplayed of t to true
end repeat
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment