• 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: email@hidden
  • Date: Tue, 23 Oct 2001 01:40:16 EDT

In a message dated 10/22/01 6:28:14 PM, Randy Siler <email@hidden>
writes:

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

if you have Jon's Commands:

set oName to owner name of (machine environment)
set cName to sharing name of (machine environment)

else:

tell application "File Sharing"
set oName to owner name
set cName to computer name
quit
end tell


Robert Kyle
StarTribune
Minneapolis


  • Prev by Date: Re: Applescript to get the User Name
  • Next by Date: Re: Applescript to get the User Name
  • Previous by thread: Re: Applescript to get the User Name
  • Next by thread: Re: Applescript to get the User Name
  • Index(es):
    • Date
    • Thread