Oh, OK. So essentially, you have a Finder window open, and there’s a file you’ve selected for which you’d like to obtain its path and have it inserted into a TextEdit document ?
I’ll assume you know how to attach a script to a hotkey in BTT to have it execute whenever you press the key combo. So the script part of it would probably be this:
property text item delimiters : linefeed
tell application id "com.apple.Finder" to set ¬
filepaths to selection as alias list
if {} = filepaths then return beep
repeat with fp in filepaths
tell fp to set the contents of ¬
it to its POSIX path
end repeat
tell application id "com.apple.TextEdit" to if ((make new ¬
document with properties {text:filepaths as text}) ¬
exists) then activate
###if you also need the filepaths copied to the clipboard
###then you can uncomment the line below
# set the clipboard to the filepaths as text
#the following line only removes /Volumes/someFolder, it could also add smb://ecc but it would look like a big mess, I think it's easier to add that prefix in a separate line of code
set relativePath to do shell script "echo \"" & thePath & "\" | sed 's/.*Volumes\/someFolder//'"
#now you add the smb prefix or whatever you want
set relativePath to "smb://Server/someParentFolder" & relativePath