Re: Newbie help needed: capturing keypress to record QuickTime timing
Re: Newbie help needed: capturing keypress to record QuickTime timing
- Subject: Re: Newbie help needed: capturing keypress to record QuickTime timing
- From: Brennan <email@hidden>
- Date: Wed, 2 Jan 2008 21:07:14 +0100
On 02/01/08 at 0:56, Skeeve <email@hidden> wrote:
> Jon Pugh wrote:
> > This is going to be tough to accomplish without custom software, as
> > neither AppleScript nor the QuickTime player is informed when a key is
> > pressed.
> Doesn't Quicktime stop playing when the spacebar is pressed? Maybe if
> that's enough, couldn't an applescript permanently poll Quicktime
> whether it's paused and record the time frame when it's paused. After
> that it could end the pause.
That could work, I suppose, but it's far from foolproof. You'd need to
make sure that QuickTime Player was frontmost every time you pressed the
spacebar, which is easier said than done if you also have an AppleScript
app running in the background, polling on idle, and occasionally putting
up dialog boxes.
Make sure you're in a 'tell' block targeted at QT player every time you
'display dialog' or 'choose from list', otherwise your AppleScript app
will come to the front and those spacebar presses will not register.
AppleScript Studio would probably be a still better bet, but for something
like this, I would probably use Macromedia Director, which is still great
for knocking up little authoring tools. (New version coming very soon,
believe it or not).
Brennan
_______________________________________________
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