How do I get the username of system?
Mark Schonewille
m.schonewille at economy-x-talk.com
Sun Oct 27 19:22:01 EDT 2013
Hi Bill,
On Windows machines, you can use
put $USERNAME
and on Mac OS X you use
put $USER
On Linux it is probably one of these, but I can't check it right now. I
don't think you can do this easily on iOS and Android, but you might be
able to read the contacts list and find the owner there.
--
Best regards,
Mark Schonewille
Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553
Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other
colour spaces. http://www.color-converter.com
Buy my new book "Programming LiveCode for the Real Beginner"
http://qery.us/3fi
Fill out this survey please
http://livecodebeginner.economy-x-talk.com/survey/
On 10/28/2013 00:13, Bill Vlahos wrote:
> I can use the hostname function to get the domain name. Is it possible to get the user name (long or short)? I’m trying to pre-populate a field with the name of the user.
>
> I see there is an Mac external to do this so I’m thinking it isn’t built in to LC and I can’t find it in the docs.
>
> Is it possible without an external? I want it for Mac, Windows, and iOS and maybe Android in the future.
>
> Bill Vlahos
More information about the use-livecode
mailing list