Re: How to find current user?
Re: How to find current user?
- Subject: Re: How to find current user?
- From: Roger Howard <email@hidden>
- Date: Thu, 28 Oct 2004 17:15:46 -0700
On Oct 28, 2004, at 12:00 PM, Bernardo Hoehl wrote:
Is this what you want?
set CurrentUser to do shell script "whoami"
set ThePath to "/Users/" & CurrentUser & "/Library/Preferences/"
PS, to answer the question in the subject line (and not the question in the message body), the above use of whoami *is* quite valid (if you just need to know the short username for the user executing the script).
-R
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden