Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kevin-funderburg/8a55b479ed659edbf503a993aeadaec9 to your computer and use it in GitHub Desktop.
Save kevin-funderburg/8a55b479ed659edbf503a993aeadaec9 to your computer and use it in GitHub Desktop.
Useful script to toggle on and off a quicktime screen recording.
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