Re: applescript-users digest, Vol 2 #287 - 15 msgs
Re: applescript-users digest, Vol 2 #287 - 15 msgs
- Subject: Re: applescript-users digest, Vol 2 #287 - 15 msgs
- From: Peter Gort <email@hidden>
- Date: Sun, 28 Jan 2001 19:17:21 +1100
>
From: Paul Berkowitz <email@hidden>
>
To: Applescript-Users <email@hidden>
>
>
On 1/27/01 6:46 PM, "Peter Gort" <email@hidden> wrote:
>
>
> Hi People,
>
>
>
> There is a (path to preferences folder) that correctly returns the apth to
>
> the preferences folder of whichever user is logged into the computer
>
> (Multiple Users under Mac OS 9 and 9.1).
>
>
>
> However there does not appear to be a (path to documents folder). Does
>
> anybody know of a way to get to the currently logged in User's Documents
>
> folder?
>
>
Hi, Peter
>
>
(path to startup disk) as string & "Documents:"
>
>
gives you the string version.
>
>
alias ((path to startup disk) as string & "Documents:")
>
>
gives you the actual folder (if it exists on the root hard disk, and hasn't
>
been moved somewhere else).
>
>
--
>
Paul Berkowitz
That's the problem, that's only valid for the owner of the machine, all
other users it will be
(startup disk):Users:<User's name>:Documents
but how do you find out the Username?
--
Peter Gort