• 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
grovelling for help creating new QT window with selection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

grovelling for help creating new QT window with selection


  • Subject: grovelling for help creating new QT window with selection
  • From: Jason Davies <email@hidden>
  • Date: Fri, 1 Jul 2005 23:26:24 +0100

I'm working with various sound files that need to be cut up into chunks - say, 10 minutes. I have been
trying to script this because my RSI makes this mouse-intensive task really painful. But I have failed
completely so I am throwing myself on your mercy for help. I have honestly struggled to produce even a
section of what is needed using Applescript, consulted Rosenthal, O'Reilly and Neuberg's books.

I'm using QT Pro 6 on 10.3.9

Essentially what I do manually is this:

move the insertion point to 10 minutes; hit control command right arrow to select the first ten minutes,
cut, create new window (I can do that bit), paste and export as aiff.

I have had some bizarre stuff happening. The pseudo obvious like 'tell movie window 1/cut
selection/end' , when compiled, adds an extra 'end' after 'selection' (on the same line), then throws an
error'. Cut does not work, copy does not work...:-) Export as aiff gives an error and so on. Even a section
of this would save my arm a lot of aggravation (literally, medically).

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


Obviously it is not this simple but I'm stumped, very tired and my hand hurts and much remains to be
done asap. Eternal gratitude for sample scripts that deal with bits (just paste and fire away, I'll hopefully
work the rest out) or pointers to good resources. What I'm struggling with is dealing with the specifics of
QT Pro (eg, I could do all this in BBEdit, but then anyone could do anything with AS in BBEdit...:-)
 _______________________________________________
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

  • Follow-Ups:
    • Re: grovelling for help creating new QT window with selection
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: path to as string
  • Next by Date: Re: path to as string
  • Previous by thread: Re: Testing to see if a string is a valid path
  • Next by thread: Re: grovelling for help creating new QT window with selection
  • Index(es):
    • Date
    • Thread