• 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: wayne melrose <email@hidden>
  • Date: Tue, 16 Nov 2004 15:19:03 +0100

All of these methods look great to me!

I'm no unix expert, or applescript expert for that matter, although I have found the unix commands that I have been using in my applescript to be quicker and alot of the time more reliable than some of the applescript commands..

shell script isnt the answer to everything, although I think you should also be open to them being the answer somethings.. ?

Am I out of line?


On Nov 16, 2004, at 2:40 PM, Joshua See wrote:

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:
email@hidden


This email sent to email@hidden

_______________________________________________ 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
References: 
 >Re: List of users/accounts (From: Gnarlodious <email@hidden>)
 >Re: List of users/accounts (From: Joshua See <email@hidden>)

  • Prev by Date: Re: List of users/accounts
  • 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