Skip to content

Instantly share code, notes, and snippets.

@DoguD
Created July 13, 2019 15:00
Show Gist options
  • Save DoguD/ffe216dc28443eadfa1ba2482e7845a4 to your computer and use it in GitHub Desktop.
Save DoguD/ffe216dc28443eadfa1ba2482e7845a4 to your computer and use it in GitHub Desktop.
Applescript which stops screen recording
tell application "QuickTime Player"
set recording to document "screen recording"
tell recording
pause
set current_path to do shell script "pwd"
set file_path to current_path & "/testrecording.mov"
save in (file_path as POSIX file)
-- export in ("../testrecording.mov" as POSIX file) using settings preset "480p"
stop
return "Test recording saved to " & file_path
close
end tell
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment