• 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: How to find current user?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to find current user?


  • Subject: Re: How to find current user?
  • From: Bernardo Hoehl <email@hidden>
  • Date: Thu, 28 Oct 2004 17:00:57 -0200

Is this what you want?

set CurrentUser to do shell script "whoami"

set ThePath to "/Users/" & CurrentUser & "/Library/Preferences/"

Bernardo Höhl
Rio de Janeiro - Brazil

On 28 Oct, 2004, at 12:17 PM, Carl Jabido wrote:

Sorry if this is a FAQ at this point. Basically I wanna get the path to the current user's Preferences folder. Is there any way to easily get this in Applescript?



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: How to find current user?
      • From: John Stewart <email@hidden>
    • Re: How to find current user?
      • From: John Stewart <email@hidden>
    • Re: How to find current user?
      • From: Roger Howard <email@hidden>
    • Re: How to find current user?
      • From: Roger Howard <email@hidden>
    • Re: How to find current user?
      • From: Scott Warren <email@hidden>
References: 
 >How to find current user? (From: Carl Jabido <email@hidden>)

  • Prev by Date: Re: Native AS or grep via do shell script?
  • Next by Date: Re: Inheritance and Loaded Libraries
  • Previous by thread: Re: How to find current user?
  • Next by thread: Re: How to find current user?
  • Index(es):
    • Date
    • Thread