Guest User

Untitled

a guest
Dec 11th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. set theItem to quoted form of POSIX path of (choose folder)
  2.  
  3. set theSize to (do shell script "/usr/bin/mdls -name kMDItemFSSize -raw " & theItem)
  4.  
  5. on open f
  6.  
  7. set filePath to do shell script "dirname " & POSIX path of f as string
  8.  
  9. display dialog theFilePath
Add Comment
Please, Sign In to add comment