• 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 do I return current user information
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I return current user information


  • Subject: Re: How do I return current user information
  • From: Graff <email@hidden>
  • Date: Wed, 19 Nov 2003 19:15:20 -0500

Easiest way is probably to do the terminal command "whoami".

code:
-----
set userName to do shell script "/usr/bin/whoami"
display dialog "The current user is: " & userName
-----

- Ken

On Nov 19, 2003, at 2:07 PM, Redd, Mark wrote:

Hi all. I am using OS\X on a win2k domain with admitMac. I need to
figure out a way to return the current user logged in as a variable.
_______________________________________________
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 do I return current user information (From: "Redd, Mark" <email@hidden>)

  • Prev by Date: Read text error
  • Next by Date: Re: UI Scripting of FileMaker
  • Previous by thread: How do I return current user information
  • Next by thread: Re: How do I return current user information
  • Index(es):
    • Date
    • Thread