• 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: Home directory
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Home directory


  • Subject: Re: Home directory
  • From: Paul Berkowitz <email@hidden>
  • Date: Tue, 02 Mar 2004 00:59:39 -0800

On 3/2/04 12:17 AM, "Michelle Steiner" <email@hidden> wrote:

> On Mar 2, 2004, at 12:54 AM, Adrien FRANCOIS wrote:
>
>>
>> To update the following script for MAC OS X, I need to know how is
>> called
>> the home directory on OS X.
>
> Here is one way; I wouldn't be surprised if there were an easier or
> more elegant way.

path to current user folder

or

path to "cusr"

if you go for that sort of thing.

>
> set the userDesktop to (path to desktop)
> tell application "Finder" to set the user to the container of the
> userDesktop
>
> If you want to find the user's document folder this will do it:
>
> set the userDocumentFolder to path to "docs"

path to documents folder

does it too (in AS 10.2 and 10.3 anyway: earlier it has to be 'At Ease
documents folder')

--
Paul Berkowitz
_______________________________________________
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: Home directory
      • From: Michelle Steiner <email@hidden>
References: 
 >Re: Home directory (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: "Path to" shortcuts
  • Next by Date: Re: "Path to" shortcuts
  • Previous by thread: Re: Home directory
  • Next by thread: Re: Home directory
  • Index(es):
    • Date
    • Thread