Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Return the short username in AppleScript' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Return the short username in AppleScript
Authored by: Eravau on Mar 10, '03 12:49:51PM
How to use it:
   set short_name to system attribute "USER"
Now the variable short_name will contain your short user name.

[ Reply to This | # ]
The AppleScript way
Authored by: Rainy Day on Mar 30, '12 02:02:34PM

set userName to short user name of (system info)

[ Reply to This | # ]