Re: grovelling for help creating new QT window with selection
Re: grovelling for help creating new QT window with selection
- Subject: Re: grovelling for help creating new QT window with selection
- From: Shane Stanley <email@hidden>
- Date: Sat, 02 Jul 2005 08:51:12 +1000
- Thread-topic: grovelling for help creating new QT window with selection
On 2/7/05 8:26 AM, "Jason Davies" <email@hidden> wrote:
> The script, if AS realy worked as English would be something like
>
> tell app "QT Pro"
> activate
> set selection to first ten minutes of movie window 1
> cut
> make new window with properties {current clipboard}
> export window 1 as aiff -- prompt for location
> close window 1 {options: saving no}
> end
You may have more success trimming and doing a save as. Here's a handler I
used (I haven't upgraded to QT Pro 7, so the save is using raw codes):
on makeClipMp1(theStart, theFinish, theScale, pathForFile)
tell application "QuickTime Player"
stop every movie
tell movie 1
set theScale to time scale
set theOriginal to original file
select at theScale * theStart to theScale * theFinish
trim
with timeout of 1500 seconds
save given «class dfil»:file (pathForFile & ".mov"), «class
savk»:self contained
end timeout
end tell
close window 1
open {theOriginal}
end tell
end makeClipMp1
--
Shane Stanley <email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden