服务器路径电子邮件链接,需要整个路径才能显示

时间:2019-03-29 10:16:33

标签: applescript

链接有效。但是它不会挂载文件夹的整个路径。它会创建一个具有先前文件夹名称的网络,而您看不到该文件夹​​之前的文件夹。

我希望整个路径行(文件夹可见。因此我可以从文件链接中返回。

保罗

tell application "Finder" to set sel to POSIX path of (the selection as alias)
set the clipboard to "afp://house-svr-03._afpovertcp._tcp.local/" & (my findReplace(text 10 thru -1 of sel, " ", "%20"))

on findReplace(t, toFind, toReplace)
    set {tid, text item delimiters} to {text item delimiters, toFind}
    set t to text items of t
    set text item delimiters to toReplace
    set t to t as text
    set text item delimiters to tid
    return t
end findReplace

Screen grab of the result

0 个答案:

没有答案