iphoto - still or video

Maybe I’m missing it, but is there a way via Applescript to tell whether the selected iPhoto object is a photo or video?

What about grabbing the image filename? From that, grab the extension. Don’t the the movie extensions currently supported by iPhoto, but I imagine that list would be shorting considering the ever growing list of RAW extensions.

make sense. will try it out. thanks.