How to Insert/Extracting MP4/M4V metadata?

Hi Guys,

Ok, I have a question that I’ve been struggling with. I’ve downloaded the Automatic DVD extraction Service Scripts, I’ve used them to convert my season 1 of X-Files, have 8 seasons to go. Here is my question however.

All the metadata has been interested into the mp4 video files, now what I want to do is extract the episode name and track number, then rename the file to ## Episode Name.mp4.

I’ve been trying to figure out how to get to the metadata but to no avail. Could someone please point me in the right direction as to how to go about this problem I have.

I’ll use what ever you guys can up with as a folder action, which is going to work perfect for me. I’ll just drop the episodes into a folder and then get the script to rename the files.

Thanks in Advance
W

Model: December 2008 Macbook
AppleScript: 2.1.1
Browser: Safari 532.9
Operating System: Mac OS X (10.6)