You say you're pasting the file, so I assume you've copied it in the Finder. Try this:
use AppleScript version "2.4" -- Yosemite (10.10) or later
use framework "Foundation"
use framework "AppKit"
use scripting additions
-- get the clipboard
set theClip to current application's NSPasteboard's generalPasteboard()
-- get URLs off clipboard
set theURLs to (theClip's readObjectsForClasses:{current application's |NSURL|} options:(missing value))
if (count of theURLs) = 0 then
display dialog "No files found on the clipboard" buttons {"OK"} default button 1
error number -128
end if
set theURL to theURLs's firstObject()
set thePath to theURL's |path|()
-- make mutable attributed string
set attString to current application's NSMutableAttributedString's alloc()'s initWithString:thePath
-- style it as a link
attString's addAttribute:(current application's NSLinkAttributeName) value:(theURL's absoluteString()) range:{0, attString's |length|()}
-- get the clipboard
set theClip to current application's NSPasteboard's generalPasteboard()
-- clear clipboard and write new attributed string to it
theClip's clearContents()
theClip's writeObjects:{attString}
-- use GUI scripting to paste into document
tell application "TextEdit" to activate
tell application "System Events"
tell process "TextEdit"
keystroke "v" using command down
end tell
end tell