Getting frames from DVDs

OS X disables the ability to take screenshots when a DVD is playing. With the regular key commands, at least. It still works from the terminal. I wrote a little script that takes a screenshot and advances the DVD one frame.


screencapture `date "+%s"`.pdf
osascript << EOF
tell app "DVD Player"
step dvd
end tell