• 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
Script a QuickTime Player Movie Recording
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Script a QuickTime Player Movie Recording


  • Subject: Script a QuickTime Player Movie Recording
  • From: Andrew Ontko <email@hidden>
  • Date: Fri, 8 Dec 2006 20:08:55 -0600

Greetings Scripting Friends,

I'm trying make a script that will launch at a specific time (will use iCal for that) which will then open a QuickTime movie window and start a recording using my iSight camera. I seem to remember a recent post on the subject but haven't been able to locate it.

I can get as far as opening the "New Recording" window using Scripting Events but can't seem to find a way to get the recording started. I've tried "Start Recording" then inserting a delay then issuing a "Stop Recording" command. This results in no error but nothing happens.

tell application "QuickTime Player" to activate

tell application "System Events"
tell menu item "New Movie Recording" of menu "File" of menu bar 1 of application process "QuickTime Player" to click -- opens a recording window
end tell


tell application "QuickTime Player" to activate
tell window 1 of application "QuickTime Player" to start recording -- does nothing
delay 10 --10 seconds pass
tell window 1 of application "QuickTime Player" to stop recording -- does nothing


I've tried to test the open window's "State" (previewing/recording/ paused,r/o) by using "get" but that generates the error: "Can't make state of window 1 into type reference."

To get the window's properties yields this:

{zoomed:true, miniaturized:false, name:"Movie Recording", floating:false, modal:false, document:document "Movie Recording" of application "QuickTime Player", miniaturizable:true, class:window, visible:true, closeable:true, resizable:false, zoomable:false, id: 30270, bounds:{642, 287, 992, 635}, titled:true, index:1}

Any thoughts on how to get the recording started & stopped are welcome.

Regards,
Andrew Ontko
_______________________________________________
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/mailman//archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: Script a QuickTime Player Movie Recording
      • From: Peter Baxter <email@hidden>
  • Prev by Date: XCode Scripting
  • Next by Date: Re: Script a QuickTime Player Movie Recording
  • Previous by thread: XCode Scripting
  • Next by thread: Re: Script a QuickTime Player Movie Recording
  • Index(es):
    • Date
    • Thread