當我看到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