Saving Movies selections as Referenced

How to save a selection in a Quicktime7 pro movie as a new “reference only” new movie?
All movies are in DV format with the same specs.

1 - open the “”
2 - create a selection

the script should:

1 - copy the selection
2 - create a new referenced only movie
3- allow me to give it a new name

is this possible?

Thanks a lot

Model: Quad-Core Intel Xeon
AppleScript: 2.3 (118)
Browser: Safari 534.52.7
Operating System: Mac OS X (10.6)

The answer is:

tell application "QuickTime Player"
       if not (exists document 1) then display dialog "Please open a QuickTime movie." buttons {"Cancel"} default button 1 with icon 1
       set the movie_name to the name of document 1
       if (can export document 1 as QuickTime media link) is true then
           set the new_file to choose file name with prompt "Choose a location for the media link file." default name movie_name
           export document 1 to new_file as QuickTime media link
           close document 1
           error "Oh no... an error."
       end if
   on error error_message number error_number
       if the error_number is not -128 then
           display dialog error_message buttons {"Cancel"} default button 1
       end if
   end try
end tell

Thanks I just wondered if there was an easier why to create the selection and through Applescript save it as referenced movie.
In other words in your script I need to copy the selection in a new empty window and then save the "untitled window as a referenced movie only.
I used a similar script already.
I wanted to avoid opening, copying and then using a script to save. Just create the selection and save it as referenced was my goal

Thanks anyhow

I see what you mean. Applescript is kind of dependant on GUI actions. I dont think it is possible with Quicktime…