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

will this code test if a user is in a group?


  • Subject: will this code test if a user is in a group?
  • From: email@hidden
  • Date: Fri, 11 Jul 2008 12:30:45 -0400


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
BrainBench Certified - (Master)Microsoft Security | (Master)Storage Area Networks Concepts | (Master)Microsoft Vista Desktop Administration
75 Barker Road
Pittsford, NY 14534

Important Notice:
This communication, including any attachments, is intended only for the use of the individual(s) or entity(s) to which it is addressed and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the reader of this communication is not the intended recipient, you are hereby notified that any dissemination, distribution or reproduction of any part of this communication in any format is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to this communication and deleting the original and any automatically generated copies. Thank-you for your co-operation.

 _______________________________________________
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

  • Follow-Ups:
    • Re: will this code test if a user is in a group?
      • From: Jeremy Reichman <email@hidden>
    • Re: will this code test if a user is in a group?
      • From: Axel Luttgens <email@hidden>
    • Re: will this code test if a user is in a group?
      • From: Philip Aker <email@hidden>
  • Prev by Date: how to create scriptable preference panes with anchors?
  • Next by Date: how to create scriptable preference pane with anchors?
  • Previous by thread: Re: how to create scriptable preference panes with anchors?
  • Next by thread: Re: will this code test if a user is in a group?
  • Index(es):
    • Date
    • Thread