How to derive the local system user name
I would like to obtain the local user name as per the system login name, in a script, not the FM user name.
FM allows me to get the user name embedded in path strings, for example get(DesktopPath). I can parse the user's name out of this path, but I would rather not for fear that the name will not always be second to last, or can I rely on this?
Is there a function I have missed that returns this name in a script?