iTunes and VLC Applescript

Posted on Dec 12, 2007. In Tech.

I watch a lot of video podcasts - or 'vodcasts' as the cool kids call them - and I have an iPod so I use iTunes. However iTunes doesn't really handle video very nicely, it eats up processing power and I can't do other things while watching as it won't play in a floated window. So I often use VLC to play them - but this is an extra effort due to having to find the file then open it with VLC.

I searched for a script that would handle this for me, and found this excellent script on dougs scripts which opens files in quicktime, but it's not really what I want, so I wrote my own with some pointers from scripts at dougs scripts.

The script checks the selected tracks in iTunes for any unplayed video podcasts, and plays the oldest one it finds. If this fails then the oldest video track is played. It also maintains the new/not new marker on podcasts, and ignores any non-video files selected.

I attached it to a keyboard shortcut, so now my vodcast viewing is easy!

Technology used:
  • Applescript