• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: User Name in OS X +
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: User Name in OS X + (From: Sam Griffith <email@hidden>)

  • Prev by Date: Re: Speakable Items
  • Next by Date: Re: handler failure
  • Previous by thread: Re: User Name in OS X +
  • Next by thread: Cleaning up Eudora...
  • Index(es):
    • Date
    • Thread