Macos 如何从applescript检索文件夹/文件的服务器详细信息

Macos 如何从applescript检索文件夹/文件的服务器详细信息,macos,applescript,Macos,Applescript,当我在MAC中看到文件夹或文件的信息时,“服务器”的等效applescript是什么 on run set selectedItem to (choose file with prompt "Select a file to read:" of type {"TEXT"}) tell application "Finder" set selectedItem to (item 1 of (get selection)) set infoList

当我在MAC中看到文件夹或文件的信息时,“服务器”的等效applescript是什么

on run
    set selectedItem to (choose file with prompt "Select a file to read:" of type {"TEXT"})


    tell application "Finder"
        set selectedItem to (item 1 of (get selection))
        set infoList to {}
        copy ("Displayed Name: " & displayed name of selectedItem) to end of infoList
        copy ("Kind: " & kind of selectedItem) to end of infoList
        copy ("Size: " & size of selectedItem & " (" & physical size of selectedItem & ")") to end of infoList
        copy ("Created: " & creation date of selectedItem) to end of infoList
        copy ("Modified: " & modification date of selectedItem) to end of infoList
        copy ("Name & Extension: " & name of selectedItem) to end of infoList
        copy ("Locked: " & locked of selectedItem) to end of infoList
        copy ("Comments: " & comment of selectedItem) to end of infoList
        copy ("Owner: " & owner of selectedItem) to end of infoList
    end tell
    set {od, AppleScript's text item delimiters} to {AppleScript's text item delimiters, return}
    set infoAsString to infoList as string
    set AppleScript's text item delimiters to od
    set the clipboard to infoAsString
    return infoAsString
end run

其他详细信息可能会有所帮助,但如果您试图获取存在于已装入服务器卷而不是本地卷上的文件夹的信息,则就AppleScript而言没有区别,至少在装入后是这样。安装它可能是另一个问题

tell application "Finder" to get
    properties of folder "Macintosh HD:Volumes:Mounted Server Volume"
end tell

其他详细信息可能会有所帮助,但如果您试图获取存在于已装入服务器卷而不是本地卷上的文件夹的信息,则就AppleScript而言没有区别,至少在装入后是这样。安装它可能是另一个问题

tell application "Finder" to get
    properties of folder "Macintosh HD:Volumes:Mounted Server Volume"
end tell

“服务器”来自哪个平台,具体做什么?@Philip“Server”是我们在mac中打开文件夹/文件信息时显示的信息。“Server”来自哪个平台,具体做什么?@Philip“Server”是在mac中打开文件夹/文件信息时显示的信息。我正在尝试获取已装载服务器卷上存在的文件夹的信息。我能够检索除服务器详细信息以外的所有详细信息。这可能有助于检索安装IP的位置。到目前为止,我是如何获取详细信息的,这一点在我的问题中有什么进展吗?我想得到同样的信息。我有已装载服务器的本地名称,但我需要实际的服务器位置。我正在尝试获取已装载服务器卷上存在的文件夹的信息。我能够检索除服务器详细信息以外的所有详细信息。这可能有助于检索安装IP的位置。到目前为止,我是如何获取详细信息的,这一点在我的问题中有什么进展吗?我想得到同样的信息。我有挂载服务器的本地名称,但我需要实际的服务器位置。