• 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: will this code test if a user is in a group?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >will this code test if a user is in a group? (From: email@hidden)
 >Re: will this code test if a user is in a group? (From: Axel Luttgens <email@hidden>)

  • Prev by Date: Re: Invalid key form errors with Keynote slides
  • Next by Date: PDFPen scripting?
  • Previous by thread: Re: will this code test if a user is in a group?
  • Next by thread: Re: will this code test if a user is in a group?
  • Index(es):
    • Date
    • Thread