Re: Two related questions:
Re: Two related questions:
- Subject: Re: Two related questions:
- From: "John C. Welch" <email@hidden>
- Date: Thu, 19 Sep 2002 12:55:14 -0400
On 09/19/2002 06:43, "Philip Aker" <email@hidden> wrote:
>
> 1) (I know this has come up , but I can't remember my userid/passsword
>
> for the archives, so forgive me) How does one go about getting the
>
> currentlogged in user short name, aka userid
>
>
set uname to (do shell script "id -un")
>
set uid to (do shell script "id -u")
>
uname & "=" & uid
The easier way is whoami....gives me what I want ;-)
john
--
Antiquis temporibus, nati tibi similes in rupibus ventosissimis exponebantur
ad necem.
(In the good old days, children like you were left to perish on windswept
crags.)
Jeff La Grua
_______________________________________________
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.