grovelling for help creating new QT window with selection
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