Skip to content

Instantly share code, notes, and snippets.

@ranaroussi
Forked from shedali/mac-quick-screenshare
Created April 17, 2017 07:42
Show Gist options
  • Save ranaroussi/0ec66cb4527c4fbc31801bc49f945d6c to your computer and use it in GitHub Desktop.
Save ranaroussi/0ec66cb4527c4fbc31801bc49f945d6c to your computer and use it in GitHub Desktop.
applescript to start screen recording using quicktime
tell application "QuickTime Player" to activate
tell application "System Events"
activate
--set UI elements enabled to true
tell process "QuickTime Player"
click menu item "New Screen Recording" of menu "File" of menu bar 1
end tell
end tell
tell application "QuickTime Player"
activate
tell application "System Events" to key code 49
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment