• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: User Privileges
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: User Privileges


  • Subject: Re: User Privileges
  • From: Luther Fuller <email@hidden>
  • Date: Fri, 06 Jan 2012 12:47:44 -0600

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 ...
What is the difference between 'writeattr' and 'writeextattr' ?

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: User Privileges
      • From: Axel Luttgens <email@hidden>
References: 
 >User Privileges (From: Luther Fuller <email@hidden>)
 >Re: User Privileges (From: "Craig D. Sutherland" <email@hidden>)

  • Prev by Date: Re: User Privileges
  • Next by Date: Re: User Privileges
  • Previous by thread: Re: User Privileges
  • Next by thread: Re: User Privileges
  • Index(es):
    • Date
    • Thread