• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: User Name in OS X +
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: User Name in OS X +


  • Subject: Re: User Name in OS X +
  • From: "John C. Welch" <email@hidden>
  • Date: Tue, 22 Oct 2002 09:37:29 -0400

On 10/22/2002 07:58, "John Delacour" <email@hidden> wrote:

>> I'm having trouble getting the full "User Name" of the current user with AS.
>
>
> do shell script "echo $USER"

That gives you the short name, not the long name, which is what he's looking
for.

Besides, that command's twice as long as it needs to be:

do shell script "whoami"

john

--
The average cost of rehabilitating a seal after the Exxon Valdez oil spill
in Alaska was $80,000. At a special ceremony, two of the most expensively
saved animals were released back into the wild amid cheers and applause from
onlookers. A minute later, in full view, they were both eaten by a killer
whale.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: User Name in OS X +
      • From: "Jared ''Danger'' Earle" <email@hidden>
    • Re: User Name in OS X +
      • From: John Delacour <email@hidden>
References: 
 >Re: User Name in OS X + (From: John Delacour <email@hidden>)

  • Prev by Date: Re: User Name in OS X +
  • Next by Date: Re: Do shell script and special characters
  • Previous by thread: Re: User Name in OS X +
  • Next by thread: Re: User Name in OS X +
  • Index(es):
    • Date
    • Thread