Quantcast
Channel: DEVONtechnologies Community - Latest posts
Viewing all articles
Browse latest Browse all 16267

Hookmark's use of DEVONthink's automation to get deep links to PDFs

$
0
0

FYI, we at CogSci Apps have taken advantage of DEVONthink’s automation to get deep links to PDFs. Hookmark’s Copy Link function will append the current selection of the PDF. And you can use its Copy Selection and Link to copy quotes that contain a link back to the PDF/selection. The AppleScript is exposed in Hookmark’s Script Editor:

tell application id "DNtp"
    if exists (content record of current tab of window 1) then
        -- current open item
        return reference URL of ( current tab of window 1)
    end if
    
    if class of window 1 is equal to viewer window then
        set selected_items to selection of window 1
        if (count of selected_items) = 1 then
            -- current selected item
            return reference URL of item 1 in selected_items
        end if
    end if
    
    -- selected group
    return reference URL of root of window 1
end tell

Screenshots and descriptions are on the Hookmark forum: :bulb: Tip: How to Copy Quotes and Deep Links to PDFs In DEVONthink - Discussion & Help - Hookmark Forum . I’ll check back here on DEVONthink forum in case anyone has comments or questions, as many Hookmark customers are also DEVONthink users. (One can use Hookmark to bidirectionally connect these two posts. That’s what I’ve done.)

Delighted that DEVONthink has the automation to do the above – for which we received many requests.


Viewing all articles
Browse latest Browse all 16267

Trending Articles