Re: will this code test if a user is in a group?
Re: will this code test if a user is in a group?
- Subject: Re: will this code test if a user is in a group?
- From: Axel Luttgens <email@hidden>
- Date: Sun, 13 Jul 2008 16:47:10 +0200
Le 12 juil. 08 à 10:18, Axel Luttgens a écrit :
[...]
Moreover, this one might prove more correct:
set userInfo to words of (do shell script theScript)
That way, one gets a list of group names.
[...]
Of course, I forgot that characters used for group names (as well as
user names) are since a rather long time ago now not restricted to a
very small set anymore; that is, "words of" is liable to split one or
more group names into several chunks.
So, this one should be even more correct:
set AppleScript's text item delimiters to {" "}
set userInfo to text items of (do shell script theScript)
Axel
_______________________________________________
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