Skip to content

Instantly share code, notes, and snippets.

@jsmm
Created October 23, 2013 23:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jsmm/7128437 to your computer and use it in GitHub Desktop.
Save jsmm/7128437 to your computer and use it in GitHub Desktop.
(**
--You need to adjust appropriately the name of the DEVONthink database in the line:
tell database "MySources"
**)
tell application "Skim"
set the xDEVONthinkLink to (get text for note 4 of document 1) as string
set customUUID to text 21 thru -8 of xDEVONthinkLink as string
end tell
tell application "DEVONthink Pro"
activate
tell database "MySources"
set myPDF to get record with uuid customUUID
open tab for record myPDF
tell application "System Events"
tell process "DEVONthink Pro" to click menu item "Reveal" of menu 1 of menu bar item "Data" of menu bar 1
end tell
end tell
close document window 1
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment