movie recording for 10 minutes in quicktime pro

is it possible to open quicktime pro, start movie recording stopping after 10 minutes and saving the file ?

Hi,

I can’t test it, because I currently don’t have any camera, but thy this


set TimeStamp to do shell script "/bin/date +%Y%m%d-%H%M%S"
set destinationPath to ((path to desktop as text) & TimeStamp & ".mov")
tell application "QuickTime Player"
	new movie recording
	delay 600
	save self contained document 1 in destinationPath
	close document 1
end tell

thanks, it seems that it lunches correctly but it doesn’t start recording and after the 10 minutes an error message appeared “document 1 doesn’t understand the save self contained message”

then try this


set TimeStamp to do shell script "/bin/date +%Y%m%d-%H%M%S"
set destinationPath to ((path to desktop as text) & TimeStamp & ".mov")
tell application "QuickTime Player"
	new movie recording
	start first recording
	delay 600
	stop first recording
	stop every document
	close document 1 saving in destinationPath
end tell

it worked perfectly thanks !!!

it saves two movies on the desktop one named Movie.mov and one with the date name. is it possible just to save the one with the date ?

As I can’t test anything, I just recommend to add this line at the end, this deletes the Movie.mov file


do shell script "/bin/rm -rf " & quoted form of (POSIX path of (path to desktop) & "Movie.mov")

it worked perfectly!!! thanks !!!

since I would be recording back to back for one hour (10 minutes increments) is there a way to give the name to the file like 20081103.a then 20081103.b then 20081103.c then 20081103.d then 20081103.e etc.