Re: Applescript to get the User Name
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