Creating QuickTime reference movie

Hi,

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

Let’s say that I will have a movie available at http://www.myserver.com/mymovie.mov

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.

Regards,

Guillaume

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
	try
		tell application "QuickTime Player"
			activate
			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
			quit
		end tell
	end try
end open

can anyone help ?

Hi,

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.

gl,

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.

gl,

Hi,

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

http://developer.apple.com/documentation/quicktime/Conceptual/QTScripting_SMIL/index.html

gl,

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!

http://bbs.applescript.net/viewtopic.php?pid=84650#p84650