Re: User Name in OS X +
Re: User Name in OS X +
- Subject: Re: User Name in OS X +
- From: John Delacour <email@hidden>
- Date: Wed, 23 Oct 2002 09:51:43 +0100
- Mac-eudora-version: 5.3a5
At 10:04 pm -0700 22/10/02, John W Baxter wrote:
We need to incorporate more obscure "stuff". Therefore, this additional
method:
set cmd to "perl -e \"@p = getpwnam `whoami`;\""
set cmd to cmd & " -e 'print \"$p[6]\";'"
do shell script cmd
I can't work out why this doesn't work if I put the first bit in
single quotes. Can you enlighten me please.
I find this slightly less obscure:
do shell script "perl -e '
@p = getpwnam $ENV{USER} ;
print $p[6] '"
JD
_______________________________________________
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.