the user's name under OSX
Scott Morrow
scott at elementarysoftware.com
Sat Dec 20 09:27:38 EST 2008
Hello Mark,
Good to know. I was trying to populate the "Name:" field of a fake
administrative password query dialog. I've since gone a different
route and used an "official" Apple dialog (or "dialogue" for some)
that takes care of this for me. However, I suspect I may yet have need
of this again sometime.
-Scott
On Dec 20, 2008, at 3:20 AM, Mark Smith wrote:
> Scott - I didn't know about dscl either, but it seems to work here
> on 10.4.11 as well.
>
> Best,
>
> Mark
>
> On 19 Dec 2008, at 22:01, Scott Morrow wrote:
>
>> Hello Gordy,
>> Thanks for that. I was (am!) ignorant of dscl
>> I'll continue looking for something (additional) that might work in
>> earlier versions.
>>
>> -Scott
>>
>> On Dec 19, 2008, at 5:14 AM, Gordon Tillman wrote:
>>
>>> Scott in 10.5 that information is stored in Directory Services.
>>> The dscl command is used to interact with that. For example:
>>>
>>> $ dscl . -read /Users/gordy RealName
>>> RealName:
>>> Gordon Tillman
>>>
>>> (that's me!)
>>>
>>> --gordy
>>>
>>>
>>> On Dec 19, 2008, at 06:07, Scott Morrow wrote:
>>>
>>>>
>>>> I'm trying to get the user's name under OSX. I can get the
>>>> environment variable
>>>>
>>>> $USER
>>>>
>>>> but this only returns the user's short name. Any ideas for
>>>> getting the full name?
>>> _______________________________________________
>>> use-revolution mailing list
>>> use-revolution at lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list