Re: Owner/User Name in OSX
Re: Owner/User Name in OSX
- Subject: Re: Owner/User Name in OSX
- From: John W Baxter <email@hidden>
- Date: Thu, 25 Apr 2002 18:13:18 -0700
At 11:15 +0800 4/25/2002, bill wrote:
>
-- below code in one line
>
set longName to words 4 thru -1 of paragraph 1 of (do shell script ("finger
>
" & (system attribute "USER")))
>
-- above code in one line
>
etc
Very nice, Bill.
Watch out in the case of multiple accounts on the machine...I have several,
three of which matched that finger (as it happened, the right one matched
first).
And...good grief, we're running finger. This utility really shouldn't be
run these days...it goes back to the friendly days of the Internet. It
gives away far too much information.
Fortunately, on my machine it is not available from outside (I'll have to
try that again next time I have the machine dial in for some reason, as
opposed to sitting behind a NATting router).
--John
--
John Baxter email@hidden Port Ludlow, WA, USA
_______________________________________________
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.