Awesome! Thanks guys, this has got this part of the script working how I expect it to. Now that I have this, I think I'll be able to finish the rest of the small tasks (moving original avi/mkv file to an archive directory and passing the new file to a tagging script, then copying it to my iTunes directory. Thanks again.