• 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: Owner/User Name in OSX
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Owner/User Name in OSX


  • Subject: Re: Owner/User Name in OSX
  • From: bill <email@hidden>
  • Date: Thu, 25 Apr 2002 22:03:54 +0800

Simon,

Two rewritten scripts, try with fun.

First, a deviation of Steve9s suggestion:

-- below code in one line
do shell script "niutil -readprop . /users/" & (do shell script "whoami") &
" realname"
-- above code in one line

Second, a deviation of my last suggestion:

-- below code in one line
do shell script "finger " & (system attribute "USER") & " | grep Login |
colrm 1 46"
-- above code in one line


bill
_______________________________________________
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.

  • Prev by Date: Re: Find and Replace Text
  • Next by Date: Re: Relative paths
  • Previous by thread: Re: Owner/User Name in OSX
  • Next by thread: Re: Owner/User Name in OSX
  • Index(es):
    • Date
    • Thread