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: Anonymous on Mar 10, '03 11:51:46AM

Another option that I use a lot:

set myname to do shell script ("whoami")

Now myname is your shortname.

For other information, like path, you can pull that from the environment, but for username it's probably simpler to just use whoami.

Joel



[ Reply to This | # ]