当我看到MAC中的文件夹或文件的信息时,“Server”的等效applescript是什么?如何从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
从什么平台是“服务器”,究竟是什么呢? – 2011-05-02 13:47:13
@Philip“服务器”是当我们在mac中打开文件夹/文件的信息时显示的信息。 – Samrat 2011-05-17 10:25:20