Created
January 1, 2009 19:56
-
-
Save seanstickle/42340 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
on run argv | |
tell application "Preview" | |
activate | |
open (item 1 of argv) | |
tell application "System Events" | |
tell process "Preview" | |
set frontmost to true | |
keystroke "g" using {command down, option down} | |
keystroke (item 2 of argv) | |
key code 36 | |
end tell | |
end tell | |
end tell | |
end run | |
osascript [fullpath filename] [page number] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment