I would like to use an AppleScript which will tell QuickTime Player to start screen recording immediately and stop screen recording after a specified length of time (e.g. 60 mins).
In my search so far, I have come across this AppleScript:
tell application "QuickTime Player"
set newScreenRecording to new screen recording
tell newScreenRecording
start
delay 3
stop
end tell
tell last item of documents
close
end tell
end tell
but I get an error message saying "the variable new screen recording is not defined". I don't know anything about programming as you can probably tell so I'd really appreciate any help you can offer with this.