Mark Rauterkus | 10 Jul 2012 02:11
Picon

Re: Is there a "User Name" that can be obtained and put into a LC script

Hi,

A while ago, Mark Schonewille offered this great advice:

Try $USER on Mac and $USERNAME on Windows. Both are global variables.

Does this work on Android or iOS?

Furthermore, I don't find any mention of $USER nor $USERNAME in the
documentation nor dictionary.

What's up with that?

Mark Rauterkus
Mark@...

_______________________________________________
use-livecode mailing list
use-livecode@...
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Roger Eller | 10 Jul 2012 02:20
Favicon

Re: Is there a "User Name" that can be obtained and put into a LC script

On Mon, Jul 9, 2012 at 8:11 PM, Mark Rauterkus wrote:

> Hi,
>
> A while ago, Mark Schonewille offered this great advice:
>
> Try $USER on Mac and $USERNAME on Windows. Both are global variables.
>
> Does this work on Android or iOS?
>
> Furthermore, I don't find any mention of $USER nor $USERNAME in the
> documentation nor dictionary.
>
> What's up with that?
>
>
> Mark Rauterkus
> Mark@...

See the second entry in the dictionary ($).  It appears that $LOGNAME is
supposed to work for all platforms, including mobile.

~Roger
_______________________________________________
use-livecode mailing list
use-livecode@...
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

(Continue reading)

Roger Eller | 10 Jul 2012 02:28
Favicon

Re: Is there a "User Name" that can be obtained and put into a LC script

On Mon, Jul 9, 2012 at 8:20 PM, Roger Eller wrote:

> On Mon, Jul 9, 2012 at 8:11 PM, Mark Rauterkus wrote:
>
> Hi,
>>
>> A while ago, Mark Schonewille offered this great advice:
>>
>> Try $USER on Mac and $USERNAME on Windows. Both are global variables.
>>
>> Does this work on Android or iOS?
>>
>> Furthermore, I don't find any mention of $USER nor $USERNAME in the
>> documentation nor dictionary.
>>
>> What's up with that?
>>
>>
>> Mark Rauterkus
>> Mark@...
>
>
> See the second entry in the dictionary ($).  It appears that $LOGNAME is
> supposed to work for all platforms, including mobile.
>
> ~Roger
>

Actually, it is only the $ character that the dictionary indicates is for
all platforms.  $LOGNAME >may< work on mobile, but I have not verified it.
(Continue reading)

J. Landman Gay | 10 Jul 2012 07:38
Favicon

Re: Is there a "User Name" that can be obtained and put into a LC script

On 7/9/12 7:11 PM, Mark Rauterkus wrote:
> Hi,
>
> A while ago, Mark Schonewille offered this great advice:
>
> Try $USER on Mac and $USERNAME on Windows. Both are global variables.
>
> Does this work on Android or iOS?

On both iOS and Android, the globalnames returns:

  $#

I.e., no useful globals at all that I can see.

--

-- 
Jacqueline Landman Gay         |     jacque@...
HyperActive Software           |     http://www.hyperactivesw.com

_______________________________________________
use-livecode mailing list
use-livecode@...
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Roger Eller | 10 Jul 2012 13:04
Favicon

Re: Is there a "User Name" that can be obtained and put into a LC script

On Tue, Jul 10, 2012 at 1:38 AM, J. Landman Gay wrote:

> On 7/9/12 7:11 PM, Mark Rauterkus wrote:
>
>> Hi,
>>
>> A while ago, Mark Schonewille offered this great advice:
>>
>> Try $USER on Mac and $USERNAME on Windows. Both are global variables.
>>
>> Does this work on Android or iOS?
>>
>
> On both iOS and Android, the globalnames returns:
>
>  $#
>
> I.e., no useful globals at all that I can see.
>
> --
> Jacqueline Landman Gay         |     jacque@...
> HyperActive Software           |     http://www.hyperactivesw.com

I would like RunRev to have $USER, $USERNAME, and/or $LOGNAME all return
the name of the "device owner" for mobile (since they are not currently
running a multi-user os).  I'll re-post to the Dev list so maybe they will
see it.

~Roger
_______________________________________________
(Continue reading)

Richard Gaskin | 10 Jul 2012 15:11
Favicon

Re: Is there a "User Name" that can be obtained and put into a LC script

Roger Eller wrote:
> I would like RunRev to have $USER, $USERNAME, and/or $LOGNAME all return
> the name of the "device owner" for mobile (since they are not currently
> running a multi-user os).

Those are provided by the system.  LiveCode merely allows you to access 
those globals, but is not responsible for creating them.

If mobile OSes provide an API for obtaining the user name, it might be 
nice if there was a single function called something like userName for 
this, using the globals where the OS provides them or the API where the 
OS provides that.

--
  Richard Gaskin
  Fourth World
  LiveCode training and consulting: http://www.fourthworld.com
  Webzine for LiveCode developers: http://www.LiveCodeJournal.com
  Follow me on Twitter:  http://twitter.com/FourthWorldSys

_______________________________________________
use-livecode mailing list
use-livecode@...
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Andre Garzia | 11 Jul 2012 17:16
Favicon
Gravatar

Re: Is there a "User Name" that can be obtained and put into a LC script

Folks,

I think that mobileBuildInfo("USER") may return the info you're looking for.

On Tue, Jul 10, 2012 at 9:11 AM, Richard Gaskin
<ambassador@...>wrote:

> Roger Eller wrote:
>
>> I would like RunRev to have $USER, $USERNAME, and/or $LOGNAME all return
>> the name of the "device owner" for mobile (since they are not currently
>> running a multi-user os).
>>
>
> Those are provided by the system.  LiveCode merely allows you to access
> those globals, but is not responsible for creating them.
>
> If mobile OSes provide an API for obtaining the user name, it might be
> nice if there was a single function called something like userName for
> this, using the globals where the OS provides them or the API where the OS
> provides that.
>
> --
>  Richard Gaskin
>  Fourth World
>  LiveCode training and consulting: http://www.fourthworld.com
>  Webzine for LiveCode developers: http://www.LiveCodeJournal.com
>  Follow me on Twitter:  http://twitter.com/**FourthWorldSys<http://twitter.com/FourthWorldSys>
>
>
(Continue reading)

Ken Ray | 11 Jul 2012 20:44
Favicon

Re: Is there a "User Name" that can be obtained and put into a LC script


On Jul 11, 2012, at 10:16 AM, Andre Garzia wrote:

> Folks,
> 
> I think that mobileBuildInfo("USER") may return the info you're looking for.

Actually that supposedly returns the name of the user that created the build of Android - for example mine
says "buildbot".

:(

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

_______________________________________________
use-livecode mailing list
use-livecode@...
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Andre Garzia | 11 Jul 2012 21:47
Favicon
Gravatar

Re: Is there a "User Name" that can be obtained and put into a LC script

On Wed, Jul 11, 2012 at 2:44 PM, Ken Ray <kray@...> wrote:

>
> On Jul 11, 2012, at 10:16 AM, Andre Garzia wrote:
>
> > Folks,
> >
> > I think that mobileBuildInfo("USER") may return the info you're looking
> for.
>
> Actually that supposedly returns the name of the user that created the
> build of Android - for example mine says "buildbot".
>
> :(
>
>
Ohhh... ok!

> Ken Ray
> Sons of Thunder Software, Inc.
> Email: kray@...
> Web Site: http://www.sonsothunder.com/
>
> _______________________________________________
> use-livecode mailing list
> use-livecode@...
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
(Continue reading)


Gmane