Skip to content

Instantly share code, notes, and snippets.

@kevinjalbert
Created April 10, 2015 13:32
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 kevinjalbert/14c513701503ff012bfb to your computer and use it in GitHub Desktop.
Save kevinjalbert/14c513701503ff012bfb to your computer and use it in GitHub Desktop.
Record Screen with Applescript
on run {input, parameters}
tell application "QuickTime Player" to quit
delay 0.5
tell application "QuickTime Player" to activate
delay 0.5
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
return input
end run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment