I need to accomplish the following tasks from a script:

1. Initiate a screen recording (with system audio).
2. After a set delay, stop the recording.
3. Save out to a file.
4. Close the recording.

I've tried a few different approaches here and ran into roadblocks. One thing I've tried for example was a QuickTime script [found here](http://lists.apple.com/archives/applescript-users/2011/Feb/msg00099.html).

```
tell application "QuickTime Player"
    set newScreenRecording to new screen recording
    tell newScreenRecording
        start
        delay 10
        stop
    end tell
    set newDoc to last item of (documents whose name contains "Untitled")
    set f to "" & (path to desktop) & "quicktimeFile"
    export newDoc in f using settings preset "Quicktime Movie"
end tell

```

This script doesn't error, but it doesn't save anything either. 

In the past I've used [iShowU HD](http://www.shinywhitebox.com/ishowu-hd/), but I've ran into significant performance issues there which have caused me to go back to the drawing board. 

I'm willing to pay for a third-party application provided that it meets my requirements, so feel free to suggest anything that could get the job done.

Running OS X 10.8 Mountain Lion.