Skip to content

Instantly share code, notes, and snippets.

@kjantzer
Last active September 9, 2015 15:26
Show Gist options
  • Save kjantzer/5457c6e74e4532ceafad to your computer and use it in GitHub Desktop.
Save kjantzer/5457c6e74e4532ceafad to your computer and use it in GitHub Desktop.
Open QuickTime for New Screen Recording
tell application "QuickTime Player"
activate
new screen recording
tell application "System Events" to key code 49
end tell
osascript \
-e 'tell application "QuickTime Player" to activate' \
-e 'tell application "QuickTime Player" to new screen recording' \
-e 'tell application "System Events" to key code 49'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment