Skip to content

Instantly share code, notes, and snippets.

@loochao
Forked from jsmm/Go to written page.scpt
Created November 5, 2016 12:38
Show Gist options
  • Save loochao/e89a0162d32e330759ffda5059c433e0 to your computer and use it in GitHub Desktop.
Save loochao/e89a0162d32e330759ffda5059c433e0 to your computer and use it in GitHub Desktop.
--2011-04-02
--http://organognosi.blogspot.com
tell application "Skim"
display dialog "Give the written page number:" default answer "" buttons {"Cancel", "OK"} default button 2
set writtenNumber to text returned of the result as integer
set numberNote5 to (get text for note 5 of page 1 of document 1)
set numberInThePDF to writtenNumber - numberNote5
go document 1 to page numberInThePDF of document 1
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment