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: cougar718 on Mar 10, '03 01:42:52PM
Hello all, I would use this instead...

-- Get the current user of the machine
set theuser to (do shell script "echo $USER")
display dialog "Current User of Machine Is : " & theuser buttons {"Ok"} default button 1 giving up after 5 with icon note

Rick Bargerhuff alias cougar
Programmer / Developer
Apple Technician / Specialist / Web Designer
Personal Email:

[ Reply to This | # ]