Created
July 13, 2019 15:00
-
-
Save DoguD/ffe216dc28443eadfa1ba2482e7845a4 to your computer and use it in GitHub Desktop.
Applescript which stops screen recording
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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