tell application "QuickTime Player"
activate
try
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
else
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