I am using the droplet code that can be used to convert a QT movie to a hinted movie but i need it to run as a compiled script.I have edited the code so that it reads in an alias to a movie and exports this as a hinted movie.
This is giving me an error saying that the movie cant be exported as hinted
here is the code,any help is greatly appreciated.I thnik the problem is with the line
set myMovie to make new movie with data (alias “mscmt2003:cc10:QTSampleCode:HintingFromJava:SmilMovieFlatten.mov”)
tell application "QuickTime Player"
--launch -- bypasses promo movie
activate
--my toggle_suppress(true)
--stop every movie
--close every movie saving no
set myMovie to make new movie with data (alias "mscmt2003:cc10:QTSampleCode:HintingFromJava:SmilMovieFlatten.mov")
--set myMovie to make new movie with data (the_file)
--open myMovie
--play myMovie
--close this_file
try
set the movie_name to the name of myMovie
-- check to see if the opened movie can be exported
if (can export myMovie as hinted movie) is true then
tell application "Finder"
set the file_name to the name of this_file
set the new_file to ((the target_folder as text) & the file_name) as string
display dialog new_file
if (exists file new_file) then ¬
delete file new_file
end tell
-- export the movie as hinted movie
if use_default is true then
export myMovie to file new_file as hinted movie using default settings
else
export myMovie to file new_file as hinted movie using most recent settings
end if
else
error "The movie “" & the movie_name & "” cannot be exported as a hinted movie."
end if
on error error_msg
try
beep
display dialog error_msg buttons {"Cancel", "Continue"} default button 2 with icon 1
on error
my toggle_suppress(false)
error number -128
end try
end try
--close this_file saving no
my toggle_suppress(false)
end tell