Created
April 22, 2014 01:16
-
-
Save fasiha/11162165 to your computer and use it in GitHub Desktop.
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
-- run from Terminal with: | |
-- $ osascript enter.scpt N | |
-- where N is the number of times Chrome will see "Return" | |
on run arg | |
log "Going to switch to Chrome and hit Return" | |
log arg | |
log "times" | |
log "Hit Control-C to cancel" | |
activate application "Chrome" | |
repeat arg times | |
tell application "System Events" to keystroke Return | |
delay 0.9 -- seconds | |
end repeat | |
end run | |
-- (Written this miserable night for use with Memrise.com's Preview mode, e.g., | |
-- open Chrome to | |
-- http://www.memrise.com/course/126327/remembering-the-kanji-6th-edition/7/garden/preview/ | |
-- and run with N=75 to get to item #76. Really, Memrise.com, when a user loves | |
-- your site enough to automate it with AppleScript, you know you're doing | |
-- something both right and wrong.) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment