• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: grovelling for help creating new QT window with selection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >grovelling for help creating new QT window with selection (From: Jason Davies <email@hidden>)

  • Prev by Date: Mike Lynch/St Cloud/QW1/US is out of the office.
  • Next by Date: Re: Testing to see if a string is a valid path
  • Previous by thread: grovelling for help creating new QT window with selection
  • Next by thread: Lincoln D Grant/KC/HALLMARK is out of the office.
  • Index(es):
    • Date
    • Thread