• 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: Philip Aker <email@hidden>
  • Date: Fri, 11 Jul 2008 11:03:22 -0700

On 08-07-11, at 09:30, email@hidden wrote:

set theScript to “/usr/bin/id”
set userInfo to do shell script theScript

if (userInfo contains “Engineering”) then
   mount volume “afp://server.ip/Engineering/”
else if (userInfo contains “Engineering”) then
   mount volume “afp://server.ip/Graphics_Design/”
   mount volume “afp://server.ip/ClipArt/”

end if

Thanks.

Charles Profitt
Sr. Network Technician

That's a useless if/else above. Check into <x-man-page://id> for the group switches.



Philip Aker echo email@hidden@nl | tr a-z@. p-za-o.@

Democracy: Two wolves and a sheep voting on lunch.

_______________________________________________
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)

  • Prev by Date: how to create scriptable preference pane with anchors?
  • Next by Date: Re: how to create scriptable preference panes with anchors?
  • Previous by thread: 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