Re: How do I return current user information
Re: How do I return current user information
- Subject: Re: How do I return current user information
- From: Graff <email@hidden>
- Date: Wed, 19 Nov 2003 19:15:20 -0500
Easiest way is probably to do the terminal command "whoami".
code:
-----
set userName to do shell script "/usr/bin/whoami"
display dialog "The current user is: " & userName
-----
- Ken
On Nov 19, 2003, at 2:07 PM, Redd, Mark wrote:
Hi all. I am using OS\X on a win2k domain with admitMac. I need to
figure out a way to return the current user logged in as a variable.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.