Re: QuickTime Pro 7
Re: QuickTime Pro 7
- Subject: Re: QuickTime Pro 7
- From: Jim Weisbin <email@hidden>
- Date: Sat, 29 Mar 2014 17:47:10 -0400
Gil Dawson <email@hidden> wrote:
> tell application "QuickTime Player 7"
> activate
> open sccFile
> select all
> copy
> close front window
> set theMovie to open mp4File
> select all
> add theMovie -- Doesn't work...
> -- quit
> end tell
>
> The last command ("add theMovie") is supposed to mimic the manual operation Edit > Add to Movie [Option-Command-V], which...
>
> adds a new "Closed Caption" track,
> obtained from the clipboard,
> which is, like, 55 minutes long,
> to the movie.
>
> It doesn't. Instead, the command adds a "Text Track" which is only 2 seconds long. I cannot imagine why.
>
> So, my question is, does anyone know how to compose a QuickTime command to mimic my manual operation?
Try like this, assuming there is already a movie file open, new_file is the one you want to add (notice I use the application ID “com.apple.quicktimeplayer” instead of “Quicktime 7”, to avoid any dialog asking me to locate QT7):
tell application id "com.apple.quicktimeplayer"
open new_file
tell document 1
select all
copy
close front window
end tell
end tell
tell application id "com.apple.quicktimeplayer"
tell document 1
rewind
add
end tell
end tell
Jim Weisbin | C.T.O. | human | 138 Fifth Avenue | 3rd Floor | New York, NY | 10011 | (212) 352-0211 | (917) 375-2272 | Los Angeles Office | 2046 Broadway | Santa Monica, CA | 90404 | (310) 264-0211 telephone | www.humanworldwide.com
Click here to view our online reel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden