Determining a User's Name

Ken Ray kray at sonsothunder.com
Sat Apr 7 03:22:59 EDT 2007


On Fri, 6 Apr 2007 22:25:16 -0700, Joe Lewis Wilkins wrote:

> Hi All,
> 
> Anyway to determine the computer user's name with RR; both Mac and 
> Windows? I want to personalize a dialog query.

You can use the environment variable $USER on Mac and $USERNAME on 
Windows:

    put $USER into tUserName  -- Mac OS X
    put $USERNAME into tUserName  -- Windows


Ken Ray
Sons of Thunder Software, Inc.
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/



More information about the use-livecode mailing list