• 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: Newbie help needed: capturing keypress to record QuickTime timing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie help needed: capturing keypress to record QuickTime timing


  • Subject: Re: Newbie help needed: capturing keypress to record QuickTime timing
  • From: Skeeve <email@hidden>
  • Date: Wed, 02 Jan 2008 10:35:44 +0100

Okay... I've experimented a bit and here we go:

tell application "QuickTime Player"
   activate
   tell document of window 1
       repeat
           if not playing then
               set timeframe to current time
               log timeframe
               if duration <= timeframe then
                   exit repeat
               end if
               play
           end if
       end repeat
   end tell
end tell
tell me to activate
display dialog "Tell me your age please" default answer "Not your business"
log the result

1) Start the film
2) Pause the film
3) Start the script
4) Stop the film with spacebar
5) Observe the event protocoll or replace the log statements with a write to a file
_______________________________________________
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
  • Follow-Ups:
    • Re: Newbie help needed: capturing keypress to record QuickTime timing
      • From: email@hidden
  • Prev by Date: Re: Newbie help needed: capturing keypress to record QuickTime timing
  • Next by Date: Saving a File to a Windows Volume
  • Previous by thread: Re: Safari Scripting Help
  • Next by thread: Re: Newbie help needed: capturing keypress to record QuickTime timing
  • Index(es):
    • Date
    • Thread