Created
April 10, 2015 13:32
-
-
Save kevinjalbert/14c513701503ff012bfb to your computer and use it in GitHub Desktop.
Record Screen with Applescript
This file contains hidden or 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
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