Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How to start QuickTime video recording on a MacBook at the command line?

share|improve this question
up vote 6 down vote accepted

1) Create a Applescript by AppleScript Editor and save it (e.g. QTRecord.scpt):

 tell application "QuickTime Player"
     activate
     start (new movie recording)
 end tell

2) Open Terminal and run the script in command line:

 osascript QTRecord.scpt 

Or the whole thing as an one-liner:

 osascript -e 'tell application "QuickTime Player" to activate' -e 'tell application "QuickTime Player" to start (new movie recording)'
share|improve this answer
    
How do you know those parameters ? Apple script editor 'Record' function, don't provide that... @ohho – CodeFarmer Jul 12 at 5:49

According to this site, it can be done using Applescript

tell application "QuickTime Player"

    set nr to (new movie recording)
    set nr to start recording true
    delay 10
    set nr to stop recording true
end tell

So it interacts with Quick-time. There are no direct commands with QuickTime.

share|improve this answer
    
Compiling the above code gives a syntax error: Expected end of line, etc. but found “true”. – ohho Jun 19 '12 at 1:46

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .