有没有办法在finder中使用applescript检索所选项目的服务器路径名?
我已尝试过属性URL和POSIX路径,但它们只是指向本地文件系统而不是服务器路径,例如:smb:// server / folder1 / folder2 / filename
到目前为止代码:
tell application "Finder"
set selectedItem to the selection as alias
URL of selectedItem --ouput: file://localhost/Volumes/server/folder1/folder2/filename
POSIX path of selectedItem --output: /Volumes/server/folder1/folder2/filename
end tell
感谢您的帮助