• 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: Applescript to get the User Name
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Applescript to get the User Name


  • Subject: Re: Applescript to get the User Name
  • From: Rob Jorgensen <email@hidden>
  • Date: Mon, 22 Oct 2001 18:30:48 -0400

On 10/19/2001, Randy Siler commented:

Can anyone give me a snippet of Applescript that will get the user name or
the computer name (as in Filesharing control panel)?

Using Jon's Commands, this might get it (I don't have users, and File Sharing is disabled, so I'm not sure if this is what you need or not):

-- begin code --

set theOwner to owner name of (machine environment)
display dialog theOwner -- for demo purposes only

-- end code --

Jon's Commands can be found at:

<http://osaxen.com/index.php?id=jons_commands>

Later,

Rob Jorgensen
Ohio, USA


References: 
 >Applescript to get the User Name (From: Randy Siler <email@hidden>)

  • Prev by Date: Re: ANNOUNCE: Image Info 0.8 Beta
  • Next by Date: Re: Write a Script for Now-Up-To-Date
  • Previous by thread: Re: Applescript to get the User Name
  • Next by thread: Re: Applescript to get the User Name
  • Index(es):
    • Date
    • Thread