• 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: how to extract log in information
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to extract log in information


  • Subject: Re: how to extract log in information
  • From: Philip Aker <email@hidden>
  • Date: Tue, 18 Jun 2002 08:31:22 -0700

On Tuesday, June 18, 2002, at 08:07 AM, Marco Ippoliti wrote:

How can I extract the long name of the current logged in user (the real name shown in the Users panel of System prefs)

Something like this came up just a while ago on this list:

on FullUserName()
set res to (do shell script ("finger " & (system attribute "USER")))
set full_name to (words 4 thru -1 of paragraph 1 of res)
set {tid, AppleScript's text item delimiters} to {AppleScript's text item delimiters, space}
set {full_name, AppleScript's text item delimiters} to {full_name as string, tid}
full_name
end FullUserName


and the computer name that is used in folder sharing ? (those information are also shown on the log in panel).

Dunno.


Philip Aker
http://www.aker.ca

'
_______________________________________________
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: 
 >how to extract log in information (From: Marco Ippoliti <email@hidden>)

  • Prev by Date: how to extract log in information
  • Next by Date: how can I get the system language
  • Previous by thread: how to extract log in information
  • Next by thread: Re: how to extract log in information
  • Index(es):
    • Date
    • Thread