• 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: List of users/accounts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: List of users/accounts


  • Subject: Re: List of users/accounts
  • From: Joshua See <email@hidden>
  • Date: Tue, 16 Nov 2004 07:40:57 -0600

On Nov 15, 2004, at 7:11 AM, Steve Suranie wrote:
Is there a way to get a list of the accounts in the system preferences?

On Nov 15, 2004, at 8:38 AM, Gnarlodious wrote:
set theList to do shell script "ls -1 /Users/ | awk '{ if ( $1 !=\"Shared\") print }'"
set userList to every paragraph of theList


On Nov 15, 2004, at 9:05 AM, email@hidden wrote:
You can also try :

do shell script "niutil -list . /users"

You'll have the complete list of the users available on the machine, including System accounts.

Why is do shell script the answer to everything?

tell application "System Events"
set _users to every user
set corporeals to every user whose picture path contains "/" -- every "real" user
-- actually more of a pain to find through niutil than straight AS
end tell


--
Sincerely,
Joshua See

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: List of users/accounts
      • From: Paul Berkowitz <email@hidden>
    • Re: List of users/accounts
      • From: wayne melrose <email@hidden>
References: 
 >Re: List of users/accounts (From: Gnarlodious <email@hidden>)

  • Prev by Date: Re: Replace text on spesific page
  • Next by Date: Re: List of users/accounts
  • Previous by thread: Re: List of users/accounts
  • Next by thread: Re: List of users/accounts
  • Index(es):
    • Date
    • Thread