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