Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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"
     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

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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.