On Jan 6, 2012, at 11:42 AM, Craig D. Sutherland wrote:
If you are willing to use 'do shell script', the command 'ls -l PosixPathToFile' will return a line of characters
Thanks Craig! I did some experimenting with this ...
quoted form of (POSIX path of testFolder)
do shell script "ls -eod " & the result
-d Directories are listed as plain files (not searched recursively).
-l (The lowercase letter ``ell''.) List in long format. (See
below.) If the output is to a terminal, a total sum for all the
file sizes is output on a line before the long listing.
-e Print the Access Control List (ACL) associated with the file, if -------- REQUIRED
present, in long (-l) output.
-o List in long format, but omit the group id. ----------- REQUIRED
The results look like this (I've added the spaces) ...
0: user:mailtest allow list, search, readattr, readextattr, readsecurity
1: user:dummy allow list,add_file,search,add_subdirectory,delete_child,readattr,writeattr,readextattr,writeextattr,readsecurity
Neither is the owner, "mailtest" has Read only privileges and "dummy" has Read & Write privileges.
But how do I really know that? In other words ...