Skip to content

Instantly share code, notes, and snippets.

@CraigWilliams
Created April 16, 2012 13:57
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 CraigWilliams/2398988 to your computer and use it in GitHub Desktop.
Save CraigWilliams/2398988 to your computer and use it in GitHub Desktop.
Advance Skim n number of lines - Great for reading eBooks
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