尝试开始屏幕录制,等待几秒钟,停止录制并将保存的录制导出到磁盘。
版本
- 苹果脚本 2.2.4
- 快速时间:10.2
苹果脚本
set filePath to "" & (path to desktop)
tell application "QuickTime Player"
set newMovieRecording to new movie recording
tell newMovieRecording
start
delay 2 --(seconds)
stop
export newMovieRecording in (filePath & "movie") using settings preset "25 fps"
end tell
end tell
停止和启动命令正常工作,但export
命令失败并出现以下错误:
movie_record.scpt:215:294: execution error: QuickTime Player got an error: Can’t get document "Movie Recording". (-1728)