Created
October 23, 2013 23:07
-
-
Save jsmm/7128437 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
(** | |
--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