Re: How to find current user?
Re: How to find current user?
- Subject: Re: How to find current user?
- From: Harald E Brandt <email@hidden>
- Date: Sat, 30 Oct 2004 22:58:26 +0200
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/"
Why not the direct:
tell application "System Events"
set userName to name of current user --your login (lowercase) username.
set userPosixFolder to POSIX path of home folder --your home folder.
end tell
____heb____________________
Harald E Brandt http://bragit.com
_______________________________________________
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