Is it possible to "Copy Item Link" for multiple items?

I am new to DevonThink, so please pardon me if the answer to my question is obvious, but I was unable to find an answer through searching the forum.

I work on projects across multiple apps (Drafts, iThoughts, Bear, now DevonThink), and I will frequently want to copy a list of links to DevonThink documents to the clipboard and paste them elsewhere. The menu item is greyed out with a multiple selection.

I’m aware of the Table of Contents tool, and that basically does what I’m looking for, except now I have a document with a numbered list, which is not exactly what I’m looking for.

I also found in the forum an AppleScript for getting the URL of several records, at a time, and that’s exactly what I would want, except I want Links-to-record. I don’t see that or the UUID as an available property.

Any tips? Thanks!

Links-to-record

That’s the reference URL property.

Great! The following AppleScript seems to do the trick! It creates a list of Markdown links from selected DevonThink records:

tell application "DEVONthink 3"
set theSelection to the selection
set theLinks to ""
set theNames to ""
set theRefUrl to ""
repeat with theRecord in theSelection
	set theRefUrl to reference URL of theRecord
	set theName to name of theRecord
	set MDlink to "[" & theName & "](" & theRefUrl & ")"
	set theLinks to theLinks & MDlink & return
end repeat
set the clipboard to theLinks

end tell

I’m a novice with these things, but it seems to work!

Nice!

I’m a novice with these things, but it seems to work!

That’s what matters and it’s a good step forward :slight_smile: