Created
May 15, 2019 20:36
-
-
Save kevin-funderburg/8a55b479ed659edbf503a993aeadaec9 to your computer and use it in GitHub Desktop.
Useful script to toggle on and off a quicktime 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 check to name of every window | |
if check is {} then | |
set resultDocument to new screen recording | |
tell resultDocument | |
delay 1 | |
start | |
end tell | |
else | |
set resultDocument to first document whose name is "Screen Recording" | |
tell resultDocument | |
stop | |
end tell | |
end if | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment