• 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: Name of current users home folder (OS X)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Name of current users home folder (OS X)


  • Subject: Re: Name of current users home folder (OS X)
  • From: Mr Tea <email@hidden>
  • Date: Tue, 28 Jan 2003 17:17:39 +0000

This from Reinhold Penner - dated 28-01-03 03.14 pm:

>> I've devised a way of finding the current users home folder very
>> crudely...
<SNIP>
>> Is there a better way of achiving this value?


> set userName to do shell script "whoami"
>
> or
>
> set userName to do shell script "id -un"
>
> these two will give you just the user's name. You will need to assemble
> the path to the desktop from there. Alternatively, you can get the path
> directly (i.e. an alias to it) by
>
> set desktopFolder to (path to desktop)


Am I missing something here? Surely this would be sufficient:

set homeFldr to path to current user folder


And, er, where did the desktop creep in from?


Nick
_______________________________________________
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: Name of current users home folder (OS X)
      • From: Mr Tea <email@hidden>
    • Re: Name of current users home folder (OS X)
      • From: Gnarlodious <email@hidden>
    • Re: Name of current users home folder (OS X)
      • From: Reinhold Penner <email@hidden>
References: 
 >Re: Name of current users home folder (OS X) (From: Reinhold Penner <email@hidden>)

  • Prev by Date: Re: Using AS to move mouse pointer?
  • Next by Date: Re: New technote for "do shell script"
  • Previous by thread: Re: Name of current users home folder (OS X)
  • Next by thread: Re: Name of current users home folder (OS X)
  • Index(es):
    • Date
    • Thread