Re: User Name in OS X +
Re: User Name in OS X +
- Subject: Re: User Name in OS X +
- From: Mr Tea <email@hidden>
- Date: Tue, 12 Nov 2002 21:33:01 +0000
This from Sam Griffith - dated 121102 06.29 pm:
>
How do you get the Long name...?
>
>
Like my username is samgriff, but the long name in My Account is: Sam
>
Griffith Jr.
If you're not too bothered about how you do it, these 'do shell script'
examples both give the long name...
--============='
set theFullName to do shell script "niutil -readprop . /users/" & (do shell
script "whoami") & " realname"
--============='
set theFullName to do shell script "finger " & (system attribute "USER") & "
| grep Login | colrm 1 46"
--============='
Note that both scripts should appear all on one line when pasted into your
script editor.
HTH
Mr Tea
_______________________________________________
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.