Created
April 16, 2012 13:57
-
-
Save CraigWilliams/2398988 to your computer and use it in GitHub Desktop.
Advance Skim n number of lines - Great for reading eBooks
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 "System Events" | |
set current_processes to name of processes whose frontmost is true | |
set current_process to item 1 of current_processes | |
end tell | |
activate application "Skim" | |
tell application "System Events" | |
tell process "Skim" | |
repeat 120 times | |
keystroke (ASCII character 31) | |
delay 0.02 | |
end repeat | |
end tell | |
end tell | |
tell application current_process to activate |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment