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: 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