Created
September 26, 2012 17:00
-
-
Save wch/3789190 to your computer and use it in GitHub Desktop.
Keyboard input speed test for RStudio
This file contains 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
tell application "RStudio" | |
activate | |
tell application "System Events" | |
tell application process "RStudio" | |
keystroke "t0 <- Sys.time()" | |
key code 36 using command down | |
key code 36 | |
keystroke "asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf" | |
key code 36 | |
keystroke "t1 <- Sys.time(); t1-t0" | |
key code 36 using command down | |
key code 36 | |
end tell | |
end tell | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
"Google Chrome"
instead of RStudio."Firefox"
"Safari"
"Sublime Text 2"