Quicktime Exporting as Mpeg4

Hi! I’m trying to write a script that exports an open video as a certain file type, here’s what I have so far, but it doesn’t work:

tell application "QuickTime Player"
	activate
	
	try
		if not (exists movie 1) then error "No movies are open."
		
		stop every movie
		
		set the movie_name to "mytest.mp4"
		if (can export movie 1 as MPEG4) is true then
			set thesettings to "Macintosh HD: johndoe: Desktop: set1test"
			set the new_file to ¬
				choose file name with prompt "Enter a name:" default name movie_name
			export movie 1 to new_file as MPEG4 using settings thesettings
		end if
	end try
end tell

Can someone please help me? I’m currently still learning the basics. Thanks a lot!

Hi surfwax95,

Check out this thread at the Apple Discussions Forum:

http://discussions.apple.com/thread.jspa?threadID=496028&tstart=0

'hope this helps.

Sincerely,
Variable as the shade