QuickTime Image sequence to Save As reference Mov file.

Hi.
I have very little apple script knowledge and have just started learning.

I’m trying to get a script for Quicktime that will
open an image sequence and then save a reference QT mov file in the same place where the image came from.

I’ve been searching the forum and I found this script.

tell application "Finder" to set theSequence to (choose file without invisibles)

tell application "QuickTime Player"
	activate
	open image sequence theSequence
	
	set nameSequence to (theSequence as string) & ".mov"
	
	tell document 1
		with timeout of 500 seconds
			save self contained in nameSequence
		end timeout
		
		close
		
	end tell
end tell

From here http://macscripter.net/viewtopic.php?id=17467

It does what I need with a self contained movie.
I’ve been trying to edit the script so it spits out a reference movie instead but it’s not working for me.

I tried this:

tell application "Finder" to set theSequence to (choose file without invisibles)

tell application "QuickTime Player"
	activate
	open image sequence theSequence
	
	set nameSequence to (theSequence as string) & ".mov"
	
	tell document 1
		with timeout of 500 seconds
			save reference movie to nameSequence using descriptors {} without replacing
		end timeout
		
		close
		
	end tell
end tell

When I run my edited version it does create a .mov file but it’s only 4kb and does not open. A working reference file for my test should be 22kb.
I then get a QT dialogue box that asks to save changes. (which doesn’t happen with the self contained script) Then I get an Apple script error. “AppleEvent Handler Failed”…

I work at a small VFX house and this script will help me with getting images sequences of from Compositing into Final Cut Pro a bit quicker. The project I’m working on now has 64 different shots (therefore Image sequences)
Each image sequence is in it’s own folder

I would like to end up with this in my right click menu I think and at some point I’d like to be able to just select the container folder of the sequence (So as not to have to go into each shot folder…would save a few clicks.)

Thanks for your time…and hopefully help :slight_smile:

Stuart.

AppleScript: 2.01
Browser: Firefox 3.6.6
Operating System: Mac OS X (10.5)

To save the reference movie use this…

save in file nameSequence

Can’t do that. The easiest would be to save the script to your “Scripts” folder and run it from the Applescript menu. If on 10.6 then you can activate that menu from the preferences of “Applescript Editor”. I think you’re using 10.5 or earlier so to show the menu see here: http://www.tuaw.com/2006/08/08/tuaw-tip-enable-the-applescript-menu/

Maybe something like this?

set theFolder to choose folder
tell application "Finder"
	set imageSequence to first file of theFolder whose name extension is "jpg"
end tell

Thanks Hank.

save in file nameSequence

Got the script working.

I’ll see If I can get it working on the container folder with that script suggestion you gave me. Will have to try this a little later as work has become busy again.

Thanks again for your help.
Stuart