grabbing path and item link

I am doing something wrong in this script but I’m unclear what is incorrect (I’m an applescript moron).

Anyway, what I want the script to do is grab the Finder path of the item and the item link (plain text, not live), I then want those to be copies to the clipboard with a return in between them. So the result on the clipboard would be:
file:///Users/danzac/Documents/Data.dtBase2/Files.noindex/pdf/9/PssSol.pdf
{return}
x-devonthink-item://45628085-F074-4F4E-A60C-C1BF4F035F86

Here is what the script looks like—the only part that works isn’t even mine but graciously made for me by another user on the forum:

tell application “DEVONthink Pro”
set thePath to path of (selection as reference)
get item link
set the clipboard to “file://” & thePath & return & link
end tell

Any help is appreciated

got it figured elsewhere on the forum, thanks