Re: Path to ~/
Re: Path to ~/
- Subject: Re: Path to ~/
- From: Nigel Smith <email@hidden>
- Date: Fri, 12 Apr 2002 13:59:31 +0100
Simon Said:
>
Getting the path to a users folder in OS X seems a bit convoluted. At the
>
moment I'm getting the path to the users desktop and then taking a step
>
back to get the users root folder ("~/" in unix land). Is there a way to
>
get the user's root directory directly (and say that half a dozen time
>
quickly)?
tell application "Finder"
return home
end tell
Or
tell application "Finder"
return home as alias
end tell
Depending on your preference...
HTH,
Nigel
_______________________________________________
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.