Re: Home directory
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.