Re: Path to ~/
Re: Path to ~/
- Subject: Re: Path to ~/
- From: Matthew Stuckwisch <email@hidden>
- Date: Fri, 12 Apr 2002 07:27:38 -0500
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)?
My guess is that there is a way to get the current user's name much like
you can with the startup disk, but I don't know the command. Once you
figure it out though
set userRootFolder to {"/Users",userName,"/"} as string
What you're doing should be okay though
Matthew Stuckwisch
[AIM/MSN]{GuifaSwimmer} | [Yahoo!]{SapphireTree} | [ICQ]{137477701}
[IRC]{guifa / G}(esperNET / irc.massinova.com)
_______________________________________________
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.
References: | |
| >Path to ~/ (From: Simon Forster <email@hidden>) |