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: cyberelf on Mar 11, '03 08:03:42AM

This only works if you're using the default home directory.
However, if your home directory is something else (I prefer to use a directory named as my full name bicapitalized without spaces on a separate volume), this script won't work at all.
Using 'do shell script "whoami"' is much more reliable.



[ Reply to This | # ]