Creating QuickTime reference movie


Can I use AppleScript to create QuickTime reference movie for online files?

Let’s say that I will have a movie available at

before the file is uploaded on the server, I want to create a QT reference movie to it (aka pointer movie). Unfortunately I did not find any example or documentation about it.

Thank you in advance for your insights.



i’ve tried this but it doensn’t seem to work

on open these_items
	tell application "Finder" to set destination to insertion location as string
		tell application "QuickTime Player"
			stop every movie
			close every movie saving no
			repeat with this_item in these_items
				open this_item
				set {fName, fExt} to {name, name extension} of (info for this_item)
				with timeout of 100000 seconds
					copy destination & text 1 thru ((offset of fExt in fName) - 1) of fName & ".mov" to newfilename
					save (a reference to file newfilename)
				end timeout
				close window 1
			end repeat
		end tell
	end try
end open

can anyone help ?


I don’t think ‘a reference to’ is used to save a movie as a reference movie. I don’t remember what a reference movie was. Need to do some review.


I can’t find how to make a reference movie without the MakeRefMovie tool. Maybe you can script that with ui scripting, because I don’t think it’s scriptable.



Another option is to create a SMIL movie. You use dynamic elements such as language and bitrate.


I just posted a script in “code exchange” that might help you with this. After rereading the topic I’m not sure this will help… but maybe!