Saturday, July 21, 2018

#1 2003-06-26 03:57:00 pm

Trash Man
Sanitation Department
Registered: 2005-10-20
Posts: 5336

Deep info

I was asked to supply detailed information on a bunch of support files. Rather than manually type them all up, I created this script to get all the "deep info"

OS version: OS X

Applescript:

tell application "Finder"
   set mySelect to choose file with prompt "Select file for deep info"
   set myInfo to properties of mySelect as list
   set info to (item 1 of myInfo & " ") as string
   set info to (info & "Name \"" & item 2 of myInfo & "\", ")
   set info to (info & "Path " & item 7 of myInfo & ", ")
   set info to (info & "Logical Size (" & item 15 of myInfo & ") bytes, ")
   set info to (info & "Disk Size (" & item 16 of myInfo & ") bytes, ")
   set info to (info & "Creation Date " & item 17 of myInfo & ", ")
   set info to (info & "Modification Date " & item 18 of myInfo & ", ")
   set info to (info & "Version " & item 30 of myInfo & ", ")
end tell


One mans trash is another mans treasure


Filed under: Finder

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)