How to get full user name prior to 10.12?


Graham Cox
 

On 10 Aug 2017, at 10:28 pm, Shane Stanley <sstanley@...> wrote:

On 10 Aug 2017, at 10:24 pm, Graham Cox <graham@...> wrote:

10.12 added a method to NSProcessInfo, -fullUserName.

How do I get the same info on earlier OS?
The Foundation function NSFullUserName().

Ah, hidden in plain sight! Thanks

G.


Shane Stanley
 

On 10 Aug 2017, at 10:24 pm, Graham Cox <graham@...> wrote:

10.12 added a method to NSProcessInfo, -fullUserName.

How do I get the same info on earlier OS?
The Foundation function NSFullUserName().

--
Shane Stanley <sstanley@...>
<www.macosxautomation.com/applescript/apps/>, <latenightsw.com>


Graham Cox
 

10.12 added a method to NSProcessInfo, -fullUserName.

How do I get the same info on earlier OS?

—Graham